Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

dxGetImageSourceDPI(TObject) Method

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

#Declaration

Delphi
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