Controlling the size of the image being scanned

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Moderator: Alex

Post Reply
BillG
Posts: 47
Joined: Fri Oct 10, 2008 3:52 pm

Controlling the size of the image being scanned

Post by BillG »

One of the documents being scanned by the user is the size of an index card. When the document is scanned it is like it is scanning for a full sheet which makes the size of the image larger and takes longer to send over the internet. Can I tell it to scan only the image part which is the size of the index card. I don't want to set the size property because other times they might be scanning a full sheet.
Alex
Site Admin
Posts: 2305
Joined: Thu Jul 10, 2008 2:21 pm

Re: Controlling the size of the image being scanned

Post by Alex »

Hello Bill,

Here are possible ways:
1. You can set page size of image with the PageSize property before the scan process and scan image of desired size.
2. You can set image layout of image with the ImageLayout method before the scan process and scan image of desired size.
3. You can scan image and detect image border of image with the DetectImageBorder method. Please read description of the DetectImageBorder method in documentation and see our Advanced example.

Best regards, Alexander
Post Reply