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
 DIRECTLY load a TPicture in TImageEnView?

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
PeterPanino Posted - Aug 06 2020 : 08:32:53
I use this code to load a TPicture in an TImageEnView:

ImageEnView1.IEBitmap.CopyFromTBitmap(APicture.Bitmap);
ImageEnView1.Update;


Isn't there a way to DIRECTLY load a TPicture in TImageEnView? (Without the detour over TPicture.Bitmap).

The reason is: My particular TPicture is a perfectly valid TPicture and can be used successfully as TPicture. But as soon as I try to access its BITMAP property I get an Access Violation! (Doesn't a TPicture automatically contain a Bitmap?)
3   L A T E S T    R E P L I E S    (Newest First)
PeterPanino Posted - Aug 08 2020 : 08:11:28
Thank you!
xequte Posted - Aug 08 2020 : 02:06:27
Also, for 9.1.2 you can assign a TPicture to a TIEBitmap or TImageEnView

Nigel
Xequte Software
www.imageen.com
xequte Posted - Aug 06 2020 : 17:27:31
Hi Peter

Some formats, such as meta files do not contain bitmaps. You should be able to assign the graphic as follows:

ImageEnView1.IEBitmap.Assign( APicture.Graphic );
ImageEnView1.Update();


Nigel
Xequte Software
www.imageen.com