Forum > Graphics

Creating an Image

(1/1)

GruntGulp:
Hello Everybody,

I'm writing some code to display a computed image (I need to show the result of a simulation).

I didn't find the reference documentation for the object then I decided to ask!

I computed the Pixels values and saved them in a square (size of the image) array of integer.
I created a TImage control on a form.

I'm not able to find the way to set the pixels in order to display a color I will made equivalent to the value found in the array.

i populated the pixels property of the bitmap canvas but nothing happens

may you help?


Thanks Roberto

theo:

--- Quote from: GruntGulp on January 20, 2010, 03:52:45 pm ---i populated the pixels property of the bitmap canvas but nothing happens

--- End quote ---

Did you set Bitmap Width/Height before that?

GruntGulp:
Thank you!  :)

This way it works.

I'm a first time user of lazarus.

Do you know wheres the reference docs of the TImage (and related) object?

thank you again!

Troodon:
http://delphi.about.com/library/bluc/text/uc052102a.htm

GruntGulp:
Thank You!

Navigation

[0] Message Index

Go to full version