FlexReport for WinForms | ComponentOne
C1.Win.C1Document.4.8 Assembly / C1.Win.C1Document Namespace / Utils Class / GetDcDpi Method
The device context to test.

In This Topic
    GetDcDpi Method (Utils)
    In This Topic
    Gets the resolution for the specified device context.
    Syntax
    'Declaration
     
    Public Shared Function GetDcDpi( _
       ByVal dc As IntPtr _
    ) As PointF
    public static PointF GetDcDpi( 
       IntPtr dc
    )

    Parameters

    dc
    The device context to test.

    Return Value

    A System.Drawing.PointF structure where System.Drawing.PointF.X represents the horizontal, and System.Drawing.PointF.Y vertical DPI. System.Drawing.PointF.Empty is returned if an error occurs.
    See Also