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
 ImageEmMView - How to load quickly
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

graph_man

328 Posts

Posted - Apr 05 2015 :  18:20:31  Show Profile  Reply
There is tiff file with 200-300 pages.
How to load this file to ImageEmMView quickly?
My result is 30-50 sec :-(

ImageEmMView <-> ImageEnMIO

ImageEnMIO->LoadFromFileAuto(TempFileTiff);

My settings for ImageEmMView:

StoreType = ietThumb;
ThumbnailResampleFilter = rfFastLinear;
ThumbnailDisplayFilter = rfFastLinear;

EnableLoadEXIFThumbnails = true;
EnableImageCaching = false;
(for some reason if EnableImageCaching = true, it's loaded more slowly. Why?)

ImageCacheSize = EnumTIFFIm(FileName);


Thank you.

xequte

38613 Posts

Posted - Apr 06 2015 :  03:28:49  Show Profile  Reply
Hi

Loading a large TIFF with many pages will necessarily be slow if you load it all at once.

You would be better to load individual frames of the TIFF on demand.

See:

http://www.imageen.com/help/TImageEnMView.AppendImage.html


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

graph_man

328 Posts

Posted - Apr 06 2015 :  09:55:56  Show Profile  Reply
How to use AppendImage to add all pages from multipage TIFF file?
Go to Top of Page

xequte

38613 Posts

Posted - Apr 06 2015 :  11:10:36  Show Profile  Reply
Hi

It would be:

ImageEnMView1.Clear;
iPageCount := function EnumTIFFIm( sFileName );
for I := 0 to iPageCount - 1 do
  ImageEnMView1.AppendImage( sFileName + IEM_Path_Index_Delimiter + IntToStr( I ));


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

graph_man

328 Posts

Posted - Apr 06 2015 :  12:09:33  Show Profile  Reply
Can I use "TImageEnMView.LoadFromFileOnDemand"?
What are the differences?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: