[Gambas-user] Paint an image

ukimiku mkuyumcu at ...3233...
Sun Nov 24 16:51:48 CET 2013


Hi Tobias,

thanks for looking into this:

In the fr.Draw() event handler, when I plot my image pixel by pixel, using
this code:

  For y = 0 To img.Height - 1
     For x = 0 To img.Width - 1
        Draw.Foreground = img[x, y]
        Draw.Point(x, y)
     Next
  Next

the image appears. But this method is slow.

When I use your
    Paint.DrawImage(img, 0, 0)

the image does not appear. I understand the logic.

Oh, thank you for your explanations on the Brush methods. Nice!

Regards,
ukimiku




--
View this message in context: http://gambas.8142.n7.nabble.com/Paint-an-image-tp44343p44347.html
Sent from the gambas-user mailing list archive at Nabble.com.




More information about the User mailing list