SetProperties method (ILEADRasterTwain)

Visual Basic Example

Visual C++ 5.0 Example

 

Syntax

short SetProperties()

Overview

Refer to Getting and Setting Capabilities.

Remarks

Sets the current TWAIN source properties to the TWAIN driver.

This method lets the user set specific TWAIN driver settings. It is a high-level alternative to setting individual capabilities using the SetCapability method (MFC) or the SetCapability2 method (VB). For more information on getting and setting TWAIN capabilities, refer to Getting and Setting Capabilities.

Calling this method sets the following properties:

ImageEffects property

DataTransfer property

ImageResolution property

EnableAutoFeed property

MaxPagesNumber property

DuplexScanning property

LeftMargin property

RightMargin property

TopMargin property

BottomMargin property

Note that the ImageEffects, DataTransfer, and ImageResolution properties are read-only interface properties that contain multiple sub-properties. Calling the SetProperties method sets each individual sub-property associated with the three interface properties to the TWAIN driver.

For more information on the sub-properties, refer to the ImageEffects property, DataTransfer property, and the ImageResolution property.

Note that not all TWAIN capabilities can be set using the SetProperties method. Depending on the TWAIN source, some capabilities can only be set using the SetCapability method (MFC) or the SetCapability2 method (VB).

For a listing of available capabilities, refer to LEADTOOLS TWAIN Defines.

For more information on specific TWAIN capabilities, refer to the TWAIN 1.9 specification.

To get the current values for the above properties, call the GetProperties method.

See Also

Elements

ImageEffects property, DataTransfer property, ImageResolution property, EnableAutoFeed property, MaxPagesNumber property, DuplexScanning property, GetProperties method, LeftMargin property, RightMargin property, TopMargin property, BottomMargin property, Unit property, BitsPerPixel property, HorizontalResolution property, VerticalResolution property, XScaling property, YScaling property, RotationAngle property, FillOrder property, BufferMemoryCompression property, TransferMode property, ScanFileFormat property, MemoryBufferSize property, EnableSaveMultipageFile property, EnableAppendToFile property, EnableDumpMemoryBuffersToFile property, PixelFlavor property, ColorScheme property, HighLight property, Shadow property, Brightness property, Contrast property, HalfTone property, SetCapability method, SetCapability2 method

Topics

TWAIN Functionality: Driver Settings