GraphicsDpi Class

Enables you to calculate the DPI values associated with specific units of measure (and vice versa).

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v20.1.dll

Declaration

public class GraphicsDpi
Public Class GraphicsDpi

Examples

This example illustrates how to adjust the document margins from one DPI value (corresponding to tenths of a millimeter) to another (corresponding to device-independent pixels) by using the XRConvert.ConvertMargins method.

using DevExpress.XtraPrinting;
using DevExpress.XtraReports.UI;
// ...

void ConvertMargins(){ 
printableComponentLink.Margins = XRConvert.ConvertMargins(printableComponentLink.Margins, 
    GraphicsDpi.TenthsOfAMillimeter, 
    GraphicsDpi.DeviceIndependentPixel);
}

Inheritance

Object
GraphicsDpi
See Also