ComponentOne Bitmap for WPF
C1.WPF.DX.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 Object _
    ) As Single
    float GetPixelsPerDip( 
       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