ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.DirectWrite Namespace / PixelSnapping Interface / GetPixelsPerDip Method
The drawing context passed to C1.Util.DX.DirectWrite.TextLayout.Draw_(System.IntPtr,System.IntPtr,System.Single,System.Single).

In This Topic
    GetPixelsPerDip Method (PixelSnapping)
    In This Topic
    Gets the number of physical pixels per DIP.
    Syntax
    'Declaration
     
    Function GetPixelsPerDip( _
       ByVal clientDrawingContext As System.Object _
    ) As System.Single
    System.float GetPixelsPerDip( 
       System.object clientDrawingContext
    )

    Parameters

    clientDrawingContext
    The drawing context passed to C1.Util.DX.DirectWrite.TextLayout.Draw_(System.IntPtr,System.IntPtr,System.Single,System.Single).

    Return Value

    the number of physical pixels per DIP
    Remarks
    Because a DIP (device-independent pixel) is 1/96 inch, the pixelsPerDip value is the number of logical pixels per inch divided by 96.
    See Also