共用方式為


CD2DBitmap::GetDPI

Return the dots per inch (DPI) of the bitmap

CD2DSizeF GetDPI() const;

Return Value

The horizontal and vertical DPI of the bitmap.

Requirements

Header: afxrendertarget.h

See Also

Reference

CD2DBitmap Class