The leading provider of version control solutions and TWAIN SDKs
  • Contact us









SetDPI Method

Description

Change the DPI (dots per inch) for the specified image.

ActiveX Edition Plug-in Edition Mac Edition
Since V8.0 Since V8.0 Since V8.0

Syntax

Boolean ObjectName. SetDPI(Short sImageIndex, Long XResolution, Long YResolution, Boolean bResampleImage, Long enumInterpolatioMethod)

Parameters

Short sImageIndex: Specifies the index of the image in buffer. The index is 0-based.

Long XResolution: The horizontal resolution.

Long YResolution: The vertical resolution.

Boolean bResampleImage: Whether to resample the image. (The image size will be changed if this is set to true).

Long enumInterpolatioMethod: specifies the method to do interpolation.

Allowed Values

Interpolation Method

1 NearestNeighbor
2 Bilinear
3 Bicubic

Return value

Boolean.

TRUE indicates success. FALSE indicates failure.

When an error occurs and IfThrowException property is TRUE, an exception will be thrown.

When FALSE is returned or an exception is thrown, check ErrorCode property and ErrorString property for error information.