LEADTOOLS WIA (Leadtools.Wia assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
ImageType Property
See Also 
Leadtools.Wia Namespace > WiaProperties Structure : ImageType Property



Gets or sets the application’s intended use of the image.

Syntax

Visual Basic (Declaration) 
Public Property ImageType As WiaImageType
Visual Basic (Usage)Copy Code
Dim instance As WiaProperties
Dim value As WiaImageType
 
instance.ImageType = value
 
value = instance.ImageType
C# 
public WiaImageType ImageType {get; set;}
C++/CLI 
public:
property WiaImageType ImageType {
   WiaImageType get();
   void set (    WiaImageType value);
}

Property Value

The application’s intended use of the image. The device uses this value to change its settings. The settings change depending upon how the image will be used. Possible values are (according to Microsoft SDK documentation):

WiaImageType.None

Default value. No intent is specified.

WiaImageType.Color

The application intends to prepare the device for a color scan.

WiaImageType.Grayscale

The application intends to prepare the device for a grayscale scan.

WiaImageType.Text

The application intends to prepare the device for scanning text.

WiaImageType.Mask

Mask for all of the image-type flags.

WiaImageType.MinimizeSize

The application intends to prepare the device for scanning an image that result's in a small scan.

WiaImageType.MaximizeQuality

The application intends to prepare the device for scanning a high-quality image.

WiaImageType.SizeMask

This flag is a mask for all of the size/quality flags.

WiaImageType.BestPreview

The application intends to prepare the device for scanning a preview.

For more information about these image types, please refer to the WIA_IPS_CUR_INTENT property ID in Microsoft Windows SDK Documentation.

Example

Refer to WiaSession.GetRootItem example.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also