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
 Basic MIO Image Save

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
FLDelphi Posted - Apr 26 2017 : 11:48:04
I'm attempting to do a basic MIO acquire from scanner and saving to disk. In the future I'd like to save to stream, but I thought I'd keep it simple. The problem is, the resulting TIFF files are very small and just a corner of the full page. I thought changing the store type to ietNormal would do the trick, but it's not.

Here's my code


  FImageEnMView := TImageEnMView.Create(nil);
  try
    FImageEnMView.MIO.TwainParams.VisibleDialog := False;
    FImageEnMView.StoreType := ietNormal;
    FImageEnMView.MIO.Acquire;

    for I := 0 to FImageEnMView.ImageCount - 1 do
    begin
      FImageEnMView.GetImageToFile(i, 'C:\Temp\multi' + IntToStr(i) + '.tiff');
    end;
  finally
    FImageEnMView.Free;
  end;



3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 30 2017 : 00:21:17
Hi

What are your settings for:

https://www.imageen.com/help/TIETwainParams.XResolution.html
https://www.imageen.com/help/TIETwainParams.YResolution.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
FLDelphi Posted - Apr 26 2017 : 12:58:21
It's funny you mentioned the Dialog.

I took a look through your demos and they are working really well. That gave me hope, and so I copied the code.

It turns out that if VisibleDialog is set to True, it works perfectly.

If VisibleDialog is set to False, the same bit of code results in thumbnails. And when I modify your demo to not show the dialog, it also results in thumbnails.

I'll begin digging around in the aquireparameters.
w2m Posted - Apr 26 2017 : 12:52:50
I suspect you are not setting the acquire parameters correctly. Take a look at the Demos\ImageAcquisition\AllAcquire demo for setting the aquireparameters. Until you get comfortable with getting and setting the aquireparameters use the built it twain dialog with FImageEnMView.MIO.TwainParams.VisibleDialog := True;


Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development