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
 Extra empty area after scan

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
Pawel Posted - Jun 28 2016 : 05:17:48
After every scan I get an image with an extra empty area at the bottom (look at image)



How do I scan:
with ImageEnMView1.MIO do
begin
AcquireParams.VisibleDialog := False
AcquireParams.AutoFeed :=True
AcquireParams.FeederEnabled := True

AcquireParams.DuplexEnabled := True
TwainParams.AutoDiscardBlankPages := -1
TwainParams.YResolution.CurrentValue := 300;
TwainParams.XResolution.CurrentValue := 300;
TwainParams.PixelType.CurrentValue := 0
end;

if not Acquire() then
   begin
          showmesage('ERROR');
          AcquireClose();
          Exit();
   end;



And then images save to disk and load:

for I := 0 to ImageEnMView1.ImageCount - 1 do
           begin

               ImageEnMView1ImageSelect(nil,I);
               ImageEnVect1.IO.Params.JPEG_ColorSpace := ioJPEG_YCbCr;
               ImageEnVect1.IO.Params.JPEG_Quality := 85;
               ImageEnVect1.IO.Params.JPEG_Progressive := True;
               ImageEnVect1.IO.SaveToFileJpeg(path);

               ImageEnMView1.DeleteImage(I);
               ImageEnMView1.InsertImage(I);
               ImageEnMView1.SetImageFromFile(path);
           end;


I'd like to know, why the empty area is and how to set to get a jpg image exactly A4 size?
2   L A T E S T    R E P L I E S    (Newest First)
Pawel Posted - Jun 29 2016 : 02:18:22
I've checked PhysicalWidth and PhysicalHeight and they are ok (8,27 x 11,69 inc)
But, the problem does not occur, when I scan with scanner dialog (there on start is set some other page size), and I need to set A4 page, so I added one line
TWainParams.StandardSize.CurrentValue := IETW_A4
but it did not help. :(

P.S. The problem does occur only when scan with feeder.
xequte Posted - Jun 28 2016 : 19:42:21
Hmm, that is odd. Have you tried setting PhysicalWidth and PhysicalHeight?

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