[Gambas-user] DrawImage

Shane buster6seven at gmail.com
Sun Jan 10 03:37:05 CET 2021


So it seems I have to alter the backimg with DrawImage

then make it stay there using Draw.Image

within in the current loop

sub Draw()

Draw.Clear
backimg.DrawImage(img1, 15, 15)
backimg.DrawImage(img2, 50, 50)

Draw.Image(backimg,0,0)

end sub

but what i want to do is

sub MouseMove()

backimg.DrawImage(img1,Mouse.X,Mouse.Y)

end

So I want to paste the img1 into backimg then display the result Image


On 10/1/21 1:07 pm, Jussi Lahtinen wrote:
>
>     Ok I see DrawImage is not persistent is there a way to add things
>     to an existing image and have it persistent
>
> Not sure what you mean. You have to keep on redrawing the image on 
> screen every time you modify it.
>
>
> Jussi
>
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210110/61fa134f/attachment-0001.htm>


More information about the User mailing list