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.


------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to