[Gambas-user] DrawImage

Jussi Lahtinen jussi.lahtinen at gmail.com
Sun Jan 10 01:37:32 CET 2021


No everything works, the bug is in your code.

This modifies the backimg:
backimg.DrawImage(img1, 100, 100)

This draws the backimg:
Draw.Image(backimg, 0, 0)

So, you have them in wrong order.


Jussi

On Sun, Jan 10, 2021 at 2:30 AM Shane <buster6seven at gmail.com> wrote:

> Ok looks like there is a bug
>
> simple test program attached
>
>
> On 10/1/21 11:13 am, Benoît Minisini wrote:
> > Le 09/01/2021 à 23:03, Shane a écrit :
> >> 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
> >>
> >
> > Of course not, your code has no sense at all.
> >
> > To do what you want, you must write:
> >
> > backimg.DrawImage(img1, 100, 100)
> >
> > Regards,
> >
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210110/4e913641/attachment.htm>


More information about the User mailing list