[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.PixelSnapping.GetPixelsPerDip

GetPixelsPerDip Method

GetPixelsPerDip(object)

Gets the number of physical pixels per DIP.

Declaration
float GetPixelsPerDip(object clientDrawingContext)
Function GetPixelsPerDip(clientDrawingContext As Object) As Single
Parameters
Type Name Description
object clientDrawingContext

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

Returns
Type Description
float

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.