Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
Harald
Posted - Jun 29 2020 : 03:44:21 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
2 L A T E S T R E P L I E S (Newest First)
Harald
Posted - Jul 05 2020 : 12:21:29 Thanks for the tip, that looks good.
xequte
Posted - Jun 29 2020 : 17:37:57 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;