ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.5.2 Assembly / C1.Util.DX.DirectWrite Namespace / PixelSnapping Interface / GetPixelsPerDip Method
The drawing context passed to TextLayout.Draw_.

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 TextLayout.Draw_.

    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