Group: GDI+ Graphics - Library: gdiplus
Returns an element of the Unit enumeration that indicates the unit of measure currently set for this Graphics handle.
GpStatus WINGDIPAPI GdipGetPageUnit(
GpGraphics *graphics,
GpUnit *unit
) DECLARE INTEGER GdipGetPageUnit IN gdiplus;
INTEGER graphics,;
INTEGER @unit graphics [in] Handle to the Graphics object.
unit [out] Element of the Unit enumeration that specifies the unit of measure currently set for this Graphics handle.
Returns GpStatus value, 0 means success.
typedef enum {
UnitWorld = 0,
UnitDisplay = 1,
UnitPixel = 2,
UnitPoint = 3,
UnitInch = 4,
UnitDocument = 5,
UnitMillimeter = 6
} Unit;1 Point Unit = 1/72 inch.
1 Document Unit = 1/300 inch.
See also: GdipSetPageUnit.
Home