add page from scanner

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

Moderator: Alex

Post Reply
kiakia
Posts: 2
Joined: Sun Feb 28, 2010 7:16 am

add page from scanner

Post by kiakia » Sun Feb 28, 2010 7:24 am

hi alex
in "VintaSoft Multipage TIFF Demo example" we can add an image from file to imageviewer
how to add a page or multipage from scanner to it.is it possible.if yes please help me with sample code.
thanks in advance

Alex
Site Admin
Posts: 1443
Joined: Thu Jul 10, 2008 2:21 pm

Re: add page from scanner

Post by Alex » Tue Mar 02, 2010 12:24 pm

Hello,

VSTwain class has the GetImage method which returns Bitmap object, you can add Bitmap object to the ImageCollection and work with it.

Best regards, Alexander

kiakia
Posts: 2
Joined: Sun Feb 28, 2010 7:16 am

Re: add page from scanner

Post by kiakia » Tue Mar 02, 2010 2:59 pm

thanks Alex
i tesed it and it worked very nice
Excuse me ,other question:
I want to store acquired images as a multipage tiff in database . Can I do this?
i see , it possible with pdf
i write this code like your example:
MemoryStream mem = VSTwain1.GetImageAsStream(0, ImageFileFormat.TIFF);
for (int i=0;i<=VSTwain1.NumImages - 1;i++)
{
VSTwain1.SaveImageToStream(0, mem, ImageFileFormat.TIFF);
}
.
.
.
myCommand.Parameters.Add("@Image", mem.GetBuffer());
but it isnt work
Error is:error at saving the image
thanks thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests