[Gambas-user] DrawImage

Shane buster6seven at gmail.com
Sat Jan 9 23:38:58 CET 2021


Hi jussi

tried

backimg = Image.DrawImage(img1, 100, 100)

returns Error Image.DrawImage is not static

img1.DrawImage(img1, 100, 100)
backimg = img1

Did the same as what I was doing
also it deleting the rest of the backimg

thanks


On 10/1/21 9:16 am, Jussi Lahtinen wrote:
> Try:
> backimg = Image.DrawImage(img1, 100, 100)
> Or:
> img1.DrawImage(img1, 100, 100)
> backimg = img1
>
>
> Jussi
>
> On Sun, Jan 10, 2021 at 12:04 AM Shane <buster6seven at gmail.com 
> <mailto:buster6seven at gmail.com>> wrote:
>
>     hey
>
>     Am I correct in believing that this code would put a copy of img1 at
>     x=100, y=100 of backimg
>
>     backimg = img1.DrawImage(img1, 100, 100)
>
>     it draws img1 but at 0,0
>
>     any ideas?
>
>     Cheers Shane
>
>
>
>     ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
>
> ----[http://gambaswiki.org/wiki/doc/netiquette  ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210110/610f4956/attachment.htm>


More information about the User mailing list