Skip to main content

dxGetImageSourceDPI(TObject) Method

Returns the source DPI value of an image stored within the specified container.

Declaration

function dxGetImageSourceDPI(AImage: TObject): Integer;

Parameters

Name Type
AImage TObject

Returns

Type
Integer

Remarks

Call this global function and pass an image list or container as the AImage parameter to retrieve the source DPI for the stored image. The dxGetImageSourceDPI function returns the dxDefaultDPI global constant value if the specified image list or container does not support the IdxSourceDPI interface.

The dxGetImageSize global function variants call the dxGetImageSourceDPI function internally to take the source DPI into account in the stored image’s on-screen size calculations.

See Also