SetTiffImageDPI

#include "BITIFF.H"

LONG CALLBACK SetTiffImageDPI( TIFFFILE   hChain,
                                                                 int               iImage,
                                                                 long             lDPI)

Description

Sets the dot per inch (DPI) setting of the specified image. The LOWORD of lDPI is the horizontal DPI and HIWORD of lDPI is the vertical DPI.

Parameters

TIFFFILE

hChain

TIFF image chain handle.

int

iImage

Index of the image in the chain.

long

lpDPI

The DPI value.

Return values

TOK on success, error code if failed. Possible error code value is TTOOFEWINFO. You need not to call TiffError() because the return value is the same for both functions.

Requirements

Header :     Declared in BiTiff.h; include BiTiff.h.

Library :    Use BiTIFF.lib.

DLLs :       BiTiff.dll.

References to related functions

See GetTiffImageDPI().

Code example