ComponentOne Bitmap for WPF
GetPixelsPerDip Method (TextRendererBase)

C1.WPF.DX.4 Assembly > C1.Util.DX.DirectWrite Namespace > TextRendererBase Class : GetPixelsPerDip Method
The drawing context passed to TextLayout.Draw_.
Gets the number of physical pixels per DIP.
Syntax
'Declaration
 
Public Overridable Function GetPixelsPerDip( _
   ByVal clientDrawingContext As System.Object _
) As System.Single
public virtual 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

Reference

TextRendererBase Class
TextRendererBase Members