This is mnoGoSearch's cache of https://lists.gambas-basic.org/pipermail/user/2010-December/032003.html. It is a snapshot of the page as it appeared during last crawling. The current page could have changed in the meantime.

Last modified: Fri, 31 Dec 2010, 09:32:51 CET    Size: 3149
[Gambas-user] Images and Pictures

[Gambas-user] Images and Pictures

Demosthenes Koptsis demosthenesk at ...626...
Fri Dec 31 09:32:51 CET 2010


Good morning to all,

i make an example for the Image class.
i want to demostrate the methods of Image class.
the example will Clear  Copy  Draw  Fill  Flip  Mirror  Replace  Resize
Rotate  Save  Stretch a picture in an Image class and put the result in
a PictureBox.

Firstly i want the picture from an Image object to put it in a
Picturebox without modify image.
i use the following code:

------------------------------
PRIVATE hImage AS Image

PUBLIC SUB Form_Open()

ME.Center
hImage = NEW Image(500, 375, FALSE)
hImage.Load(Application.Path & "/nature.png")
PictureBox1.Picture = hImage.Picture

END
------------------------------

but the PictureBox1 at runtime is empty.
Why? what am i doing wrong?




-- 
Regards,
Demosthenes Koptsis.





More information about the User mailing list