SetDPI()

Description

Change the DPI (dots per inch) of an image specifiedby index.

Syntax

.SetDPI(sImageIndex, xResolution, yResolution, bResampleImage, enumInterpolationMethod newInterpolationMethod);

Parameters

<short> sImageIndex: specifies the index of the image to be converted. The index is 0-based.
<int> xResolution: specifies horizontal resolution
<int> yResolution: specifies vertical resolution.
bool bResampleImage: specifies whether to resample the image. (The image size will change if this is set to true).
EnumDWT_InterpolationMethod newInterpolationMethod: specifies the algorithm to do interpolation.

Allowed Values Interpolation Method
1 EnumDWT_InterpolationMethod.IM_NEARESTNEIGHBOUR
2 EnumDWT_InterpolationMethod.IM_BILINEAR
3 EnumDWT_InterpolationMethod.IM_BICUBIC

Return value

bool

true indicates success. false indicates failure.

When false is returned, check ErrorCode or ErrorString for error information.

Is this page helpful?

Leave a Reply

Your email address will not be published.