[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