ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 First Scanned Page has wrong Pixeltype
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Ralf

112 Posts

Posted - Apr 12 2017 :  04:39:25  Show Profile  Reply
Hello,
I'm Scanning truth Twain from a scanner over ImageenMView.
AcquireParams.PixelType:=ieapMonochrome;

To fasten the save process I let give me the Image in the ImageEnMViewAfterAcquireBitmap(Sender: TObject; index: Integer);

TIFF_Compression:=ioTIFF_G4FAX;
GetImageToStream(Index, MStream, FType);

I have the following problem:
The first Image i let give me with GetImageToStream has wrong settinges of BitsperSample (8) and SamplesperPixel (3). Both must be by Monochrome 1. All other Pages/Images I let give me have the right Value.

When i let give me the First Image Again the value is correct.

The great problem is, that the first Image is about 11MB and all other about 25KB

When I do the GetImageToStream later direct in the saving procedure the Value of BitsperSampe and SamplesperPixel are set correct.

Thanks
Ralf

xequte

38183 Posts

Posted - Apr 30 2017 :  18:44:12  Show Profile  Reply
Hi Ralf

What do you get if you call (after scanning):

for I := 0 to ImageEnMView1.MIO.ParamsCount - 1 do
  memo1.lines.add( IntToStr( ImageEnMView1.MIO.Params[ I ].BitsPerSample ));



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

Ralf

112 Posts

Posted - May 01 2017 :  11:18:28  Show Profile  Reply
Hi Nigel,
after the complete Scanning in my normal Saving process the BitsPerSample is OK.

Only while Scanning it is wrong.

At the moment we let only give as the second until the last image. The first we let us give during the Saving process.

Regards
Ralf
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: