FAQ: How to scan image in file

26 views
Skip to first unread message

Vankir

unread,
Apr 10, 2007, 5:46:26 AM4/10/07
to PixTools (scanning & imaging SDK)
The sample demonstrates how to scan image in file.

public void Scan()
{
ScanDriver scanner = ScanDriversManager.GetDriver(@"name
of your driver");
using(WriteFileDriver wfd = new WriteFileDriver())
using(PipeProcess pipe = new PipeProcess(scanner, wfd))
{
wfd.OpenFile(@"c:\testWrDr.tif", PixFileType.Tiff,
OpenFileMode.CreateAlways);
wfd.ColorFormat = ColorFormat.BlackWhite0;
wfd.Compression = PixCompression.G4;
//During Run image will be got from scanner and saved to file.
//PageSide will contains PixImage which will have link at file
with saved image.
PageSide pageSide = pipe.Run();
}
}

Reply all
Reply to author
Forward
0 new messages