Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
BobSmith
Posted - Nov 12 2025 : 14:54:07 OK, so I purchased ImageEn.
1. Downloaded the installer and installed it. 2. Copied the source directory under my project. 3. Added the source path to my project search path. 4. Added imageenview to my uses. 5. Declared ImageEnView1:TImageEnView; 6. Created it at startup inside main form OnCreate ImageEnView1 := TImageEnView.Create(form1); ImageEnView1.Parent := ScrollBox1;
At this point if I start my app it shows the grey imageen square. All good so far.
Now when I go to draw a bitmap (specifically a graphics32 bitmap) to the imageenview using tbm.drawto(destimage.canvas.handle,0,0); It complains that the imageenview has no canvas? If I try tbm.drawto(ImageEnView1.bitmap.canvas.handle,0,0); that compiles, but does not seem to display anything to the ImageEnView.
How should I handle outputting a graphics32 bitmap to an imageenview?
Thanks.
1 L A T E S T R E P L I E S (Newest First)
xequte
Posted - Nov 12 2025 : 16:15:03 Hi Bob
Thank you for your order.
Ensure that you initialize the bitmap:
ImageEnView1.IEBitmap.Allocate( 500, 500, clWhite );
... Draw to the canvas ...
ImageEnView1.Update(); // Show the changes