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
 Need to change TIFF resolution

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
aclement Posted - May 20 2015 : 10:02:25
Hi,
I need to change the TIFF file resolution and compress. The reason was the customer had scanned the files and the size if it in database is big.
Can you please provide me a way to do that. I tried the below but not working as expected and causing AV error

for i := 0 to imgScanFile.MIO.ParamsCount do
begin
//imgScanFile.MIO.TwainParams.XResolution.CurrentValue := 200;
//imgScanFile.MIO.TwainParams.YResolution.CurrentValue := 200;
//imgScanFile.MIO.Acquire;
imgScanFile.MIO.Params[i].DpiX := 200;
imgScanFile.MIO.Params[i].DpiY := 200;
end;
end;
imgScanFile.MIO.SaveToFileTIFF(imgScanFile.MIO.ExecuteSaveDialog);
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - May 21 2015 : 01:07:10
Hi

The DPI settings of an image are simply an instruction on how to print/display an image. Setting them won't actually change the image, so you also need to call for each image in the MIO:

imgScanFile.Proc.Resample( .. );

http://www.imageen.com/help/TImageEnProc.Resample.html

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