43
Chapter12-ScanningFunctions
Syntax
int SNBDAPI CIMG_scan_open_source(Control *win_control);
Remark
Table12.6:CIMG_scan_open_sourceFunctionVariable
Variable
Description
win_control
Windowformcontrolobject
Returns
ReturnstheWindowformcontrolobject.AnyvaluelessthanzeroisaSnowbounderrorcode.
SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMG_scan_pages()
ThisTWAINscanningroutinescansallpagesfromthecurrentlyselectedscannerorinput
deviceandsavestothepath/filenamespecifiedbythefilenameintheimageformatfiletype.
Formulti-pageformats,allpagesarestoredinasinglemulti-pagefile.Forsinglepageformats,
imagesarecreatedwiththefollowingfilenames:00000000.img,00000001.img,etc.foreach
page.
Formulti-pagefiletypessuchasTIFF,DCX,orMO:DCA:OCA,youmustspecifyavalid
filename.Forotherfiletypes,thefilenamecanonlycontainapath.
YoucanfindthesamplesforusingthisfunctioninthefollowingdirectoryC:\Program
Files\Snowbound Software\RasterMaster® .NET Evaluation\Net\Samples.
ThisfunctionisusedintheScan
sample.
Note:
NormallytheiShowUIwillbeturnedoffformulti-pagescanning.
Syntax
int SNBDAPI CIMG_scan_pages(Control *win_control, String
strFileName, int iFileType, int iShowUI);
Remark
Table12.7:CIMG_scan_pagesFunctionVariables
Variable
Description
win_control
Windowformcontrolobject
strFileName
Outputfilenametocreateasascannedimage
74
54
Chapter12-ScanningFunctions
Variable
Description
iFileType
SeeAppendix
B,
Supported
File
Format
forfiletype
formatsinwhichtosavecompressedimages
iShowUI
0=DonotdisplayTWAINdialogbox
1=DisplayTWAINdialogbox
Returns
ReturnstheWindowformcontrolobject.AnyvaluelessthanzeroisaSnowbounderrorcode.
SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMG_scan_pages_fast()
Thisfunctionallowsfornewfastmemorytransferscanning.Aparametercanalsobesetto
allowduplexscanningifyourscannersupportsit.
Itscansallpagesfromthecurrentinstalledscannerorinputdeviceandsavesthemtothe
specifiedpath/filename.ThefileformatisspecifiedbytheiFileTypeparameter.
Formulti-pageformats,allpagesarestoredinasinglemulti-pagefile.Forsinglepageformats,
imagesarecreatedwiththefollowingfilenames:0000000.img,00000001.img,etc.foreach
page.
Formulti-pagefiletypessuchasTIFF,DCX,orMO:DCA:IOCAyoumustspecifyavalid
filenameandallpageswillbestoredinasinglemulti-pageimage.Forotherfiletypes,the
filenamecanonlycontainapath.
Note:
NormallytheiShowUIwillbeturnedoffformulti-pagescanning.
Syntax
int SNBDAPI CIMG_scan_pages_fast(Control *win_control, String
strFileName, int iFileType, int iShowUI, int iDuplex);
Remark
Table12.8:CIMG_scan_page_fastFunctionVariables
Variable
Description
win_control
Windowformcontrolobject
strFileName
Outputfilename
iFileType
Filetype(fromimglib.h)
iShowUI
0=DonotdisplayTWAINdialogbox
1=DisplayTWAINdialogbox
iDuplex
1=setduplexscanningmode
75
C# Excel - Excel Conversion & Rendering in C#.NET Excel documents in .NET class applications independently, without using other external third-party dependencies like Adobe Acrobat. Excel to PDF Conversion.
how to delete text in pdf document; delete text from pdf file
48
Chapter12-ScanningFunctions
Returns
ReturnstheWindowformcontrolobject.AnyvaluelessthanzeroisaSnowbounderrorcode.
SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMG_scan_set_cap()
ThisfunctionsetsthevalueofthespecifiedTWAINcapability.
YoucanfindthesamplesforusingthisfunctioninthefollowingdirectoryC:\Program
Files\Snowbound Software\RasterMaster® .NET Evaluation\Net\Samples.
ThisfunctionisusedintheScan
sample.
Syntax
int SNBDAPI CIMG_scan_set_cap(Control *win_control, int cap, int
value);
Remark
Table12.9:CIMG_scan_set_capFunctionVariables
Variable
Description
win_control
Windowformcontrolobject
cap
CurrentTWAINcapabilitytoset
value
NewsettingforTWAINcapability
Returns
ReturnstheWindowformcontrolobject.AnyvaluelessthanzeroisaSnowbounderrorcode.
SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMG_scan_set_caps()
Thisfunctionallowstheusertosetthescanningparameterssuchasheight,width,andbitsper
pixelforthecurrentscanner.
YoucanfindthesamplesforusingthisfunctioninthefollowingdirectoryC:\Program
Files\Snowbound Software\RasterMaster® .NET Evaluation\Net\Samples.
ThisfunctionisusedintheScan
sample.
Syntax
int SNBDAPI CIMG_scan_set_caps(CSCAN_CAPS *new_caps);
Remark
Table12.10:CIMG_scan_set_capsFunctionVariable
76
42
Chapter12-ScanningFunctions
Variable
Description
new_caps
PointertotheCSCAN_CAPSstructure
Returns
ReturnstheWindowformcontrolobject.AnyvaluelessthanzeroisaSnowbounderrorcode.
SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
CIMG_scan_setup()
ThisfunctionTWAINscanningroutineallowsthecallertobringuptheTWAINdriver’suser
interfacetosetscanningparameters.Aftertheparametersareset,theyaresaved.No
scanningoccursunlessoneoftheotherscanacquiringfunctionsarecalled.
YoucanfindthesamplesforusingthisfunctioninthefollowingdirectoryC:\Program
Files\Snowbound Software\RasterMaster® .NET Evaluation\Net\Samples.
ThisfunctionisusedintheScan
sample.
Syntax
int SNBDAPI CIMG_scan_setup(Control *win_control);
Remark
Table12.11:CIMG_scan_setupFunctionVariable
Variable
Description
win_control
Windowformcontrolobject
Example12.2CIMGLOW_ooxml_license_enable
string licensePath = "";
status = snowbnd.CIMGLOW_ooxml_license_enable(ref licensePath);
Console.WriteLine(licensePath);
Returns
ReturnstheWindowformcontrolobject.AnyvaluelessthanzeroisaSnowbounderrorcode.
SeeAppendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
77
41
Chapter13-ScrollbarDefaultFunctions
Chapter 13 - Scrollbar Default Functions
ThischapterdescribestheRasterMaster.NETscrollbardefaultfunctions.
Properties
Properties
Thissectionliststhepropertiesusedinthescrollbardefaultfunctions:
Table13.1:ScrollbarDefaultFunctionProperties
Property
Description
Hsb
Getsandsetsthehorizontalscrollbar
Vsb
Getsandsetstheverticalscrollbar
Status
GetstheGENERAL_STATUSerrorcodes
StatusDetails
Getsthedetailedstatuserrorcodes
SnowbndCNet_HScrollBar()
Thisfunctioncontrolshowanimageisscrolled.
Syntax
virtual void SnowbndCNet_HScrollBar(Object *sender, ScrollEventArgs
*se);
Remark
Table13.2:SnowbndCNet _HScrollBarVariables
Variable
Description
sender
Standard.NETobject
ScrollEventArgs
Standard.NETobject
Returns
Returnsthestandard.NETobject.AnyvaluelessthanzeroisaSnowbounderrorcode.See
Appendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
SnowbndCNet_VScrollBar()
Thisfunctioncontrolshowanimageisscrolled.
78
21
Chapter13-ScrollbarDefaultFunctions
Syntax
virtual void SnowbndCNet_VScrollBar(Object *sender, ScrollEventArgs
*se);
Remark
Table13.3:SnowbndCNet _VScrollBarVariables
Variable
Description
sender
Standard.NETobject
ScrollEventArgs
Standard.NETobject
Returns
Returnsthestandard.NETobject.AnyvaluelessthanzeroisaSnowbounderrorcode.See
Appendix
H,
Snowbound
Error
Codes
foralistoferrorcodes.
79
53
Chapter14-ImageDecompressionFunctions
Chapter 14 - Image Decompression
Functions
ThischapterdescribestheRasterMaster.NETimagedecompressionfunctions.
CIMG_decompress_bitmap()
Thisisthemainfunctionforloadingacompressedoruncompressedimagefromdisk.It
convertsthedatatoaWindowsDIBformatinmemory.Itsupportsunicodefilenameinput.
ThisfunctionisusedtoreadinanysupportedformatincludingMO:DCA,AFP,PCL,PDF,
RTF,orWord.SeeAppendix
B,
Supported
File
Format
foralistofsupportedfileformats.You
donotneedtoknowtheformatofthedocumentbeforeusingthedecompressbitmapfunction.
Simplyprovidethedocumenttothisfunctionanditwillautomaticallydetecttheformatand
convertittobitmap.
YoucanfindthesamplesforusingthisfunctioninthefollowingdirectoryC:\Program
Files\Snowbound Software\RasterMaster® .NET Evaluation\Net\Samples.
Thisfunctionisusedinthefollowingsamples:
l
Alpha
l
Animate
l
Annaction
l
Annotation
l
ASP
Conversion
l
ASP
Image
View
l
ASP
Memory
Copy
l
ASP
Multiple
Pages
l
Contrast
l
Conversion
l
Convert_
Doc
l
DocClean
80
Documents you may be interested
Documents you may be interested