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
 First Scanned Page has wrong Pixeltype

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
Ralf Posted - Apr 12 2017 : 04:39:25
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
2   L A T E S T    R E P L I E S    (Newest First)
Ralf Posted - May 01 2017 : 11:18:28
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
xequte Posted - Apr 30 2017 : 18:44:12
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