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