GraphicsDpi.GetGraphicsDpi(Graphics) Method
Gets the DPI value corresponding to the unit of measure of the specified Graphics object.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Data.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
gr | Graphics | A Graphics object. |
Returns
Type | Description |
---|---|
Single | A Single value. |
Remarks
If the PageUnit property of the specified Graphics object is equal to GraphicsUnit.Display, this method returns the DpiX property value of this Graphics object.
Otherwise, this method calls the GraphicsDpi.UnitToDpi method with the PageUnit property value of this Graphics object passed as a parameter.
See Also