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
 TImageEnMView: Detect and get the source of a specific image?

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 - Feb 21 2023 : 05:41:16
In an ImageEnMView, I have images collected from various sources:

- Loaded from file
- AppendImage(IEBitmap);
etc.

I need to detect the best-quality image source for each image:
- If loaded from file: Get image from file path
- If loaded from IEBitmap: Get the IEBitmap from the image
etc.

How can I detect each image source and get the best source?

Does the best solution consist in trying to get the file path with
ImageEnMView1.ImageFileName[i]
, and if it is empty, then get the IEBitmap?
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 22 2023 : 00:57:19
Yes, I mean ImageTag or ImageUserPointer.

ImageID should really only be used for custom loading within the TImageEnMView itself.

Nigel
Xequte Software
www.imageen.com
PeterPanino Posted - Feb 22 2023 : 00:50:57
Hi Nigel,

Do you mean ImageID, ImageTag, ImageUserPointer, or any other data fields?
xequte Posted - Feb 21 2023 : 12:20:03
Hi Peter

That seems a reasonable method. If necessary, you could encode some information about the source into one of the data fields.



Nigel
Xequte Software
www.imageen.com