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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TImageEnMView: Detect and get the source of a specific image?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

864 Posts

Posted - Feb 21 2023 :  05:41:16  Show Profile  Reply
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?

xequte

38221 Posts

Posted - Feb 21 2023 :  12:20:03  Show Profile  Reply
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
Go to Top of Page

PeterPanino

864 Posts

Posted - Feb 22 2023 :  00:50:57  Show Profile  Reply
Hi Nigel,

Do you mean ImageID, ImageTag, ImageUserPointer, or any other data fields?
Go to Top of Page

xequte

38221 Posts

Posted - Feb 22 2023 :  00:57:19  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: