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
 Local const MAXSTRIPDIM in tiffilt.pas
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Harald

Germany
6 Posts

Posted - Jun 29 2020 :  03:44:21  Show Profile  Reply
Hello.
We also use ImageEn for scanning. PDF documents may only contain one image per page. We adjust the constant MAXSTRIPDIM accordingly.

My request:
Can you declare MAXSTRIPDIM so that we can change the value without modifying the sources and recompiling?
For example
var MAXSTRIPDIM: integer = 512 * 1024; // 512 K

in interface of tiffilt.pas

This would simplify our work and avoid the risk that this important point is overlooked after an update.

Thanks a lot,
Harald

xequte

5327 Posts

Posted - Jun 29 2020 :  17:37:57  Show Profile  Reply
Hi Harald

Why not use the TIFF_StripCount property, e.g.


// Save Images with 2MB strips (instead of default 512KB)
const
  TWO_MB = 2 * 1024 * 1024;
begin
  ImageEnView1.IO.Params.TIFF_StripCount := imax((ImageEnView1.IEBitmap.Height * ImageEnView1.IEBitmap.RowLen) div TWO_MB, 1);
  ImageEnView1.IO.SaveToFileTiff( 'D:\Myimage.tiff' );
end;


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Harald

Germany
6 Posts

Posted - Jul 05 2020 :  12:21:29  Show Profile  Reply
Thanks for the tip, that looks good.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: