[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.TextRendererBase.GetPixelsPerDip

GetPixelsPerDip Method

GetPixelsPerDip(object)

Gets the number of physical pixels per DIP.

Declaration
public virtual float GetPixelsPerDip(object clientDrawingContext)
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

Implements
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.