ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Creating ImageEn at runtime and assigning a bitmap

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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

http://www.imageen.com/help/TIEBitmap.Allocate.html


Nigel
Xequte Software
www.imageen.com