Skip to content

Latest commit

 

History

History
65 lines (47 loc) · 1.27 KB

File metadata and controls

65 lines (47 loc) · 1.27 KB

Home

Function name : GdipGetPageUnit

Group: GDI+ Graphics - Library: gdiplus


Returns an element of the Unit enumeration that indicates the unit of measure currently set for this Graphics handle.


Declaration:

GpStatus WINGDIPAPI GdipGetPageUnit(
	GpGraphics *graphics,
	GpUnit *unit
)  

FoxPro declaration:

DECLARE INTEGER GdipGetPageUnit IN gdiplus;
	INTEGER graphics,;
	INTEGER @unit  

Parameters:

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.


Return value:

Returns GpStatus value, 0 means success.


Comments:

Unit Enumerated Type

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.