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
 Best way to use TImageEnIO in console application?

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 - Apr 14 2016 : 05:25:37
Hello! I need to use TImageEnIO in a windowless console application. What is the most "cheap" (in the sense of resource and memory consumption) to do this? Currently I use this code in the console application:

IEV := TImageEnView.Create(nil);
try
  ThisImageMetadataText := GetAllMetaDataTextFromImage;
  DoSomethingWith(ThisImageMetadataText);  
finally
  IEV.Free;
end;


However, I am not sure if there isn't a "cheaper" class than TImageEnView to use TImageEnIO?
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 17 2016 : 16:45:32
Hi Peter

That wording should be improved. It is true in practical terms 99% of the time, but it is not a requirement (as TImageEnIO has its own fallback image container). It is also not true when you just want the params.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
PeterPanino Posted - Apr 14 2016 : 16:35:12
Nigel, I asked my question because the ImageEn help file states:

 
Generally you will not add a TImageEnIO component directly to your project.

Ensure you do not call any TImageEnIO methods before it is actually attached to an image container.


xequte Posted - Apr 14 2016 : 15:45:49
Hi Peter

Well the cheapest way to use a TImageEnIO, is simply to create a TImageEnIO object (TImageEnView is not needed).

IO := TImageEnIO.Create(nil);
try
  IO.ParamsFromFile( sFilename );
  DoSomethingWith( IO.IOParams );  
finally
  IO.Free;
end;



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com