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
 Local const MAXSTRIPDIM in tiffilt.pas

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
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;


Nigel
Xequte Software
www.imageen.com