[]
IDWritePixelSnapping
[Guid("eaf3a2da-ecf4-4d24-b644-b34f6842024b")]
[Shadow(typeof(PixelSnappingShadow))]
public interface IPixelSnapping : ICallbackable, IDisposable
Gets a transform that maps abstract coordinates to DIPs.
Matrix3x2 GetCurrentTransform(object clientDrawingContext)
clientDrawingContext
objectThe drawing context passed to GrapeCity.Documents.DX.DirectWrite.TextLayout.Draw_(System.IntPtr,System.IntPtr,System.Single,System.Single).
a structure which has transform information for pixel snapping.
Gets the number of physical pixels per DIP.
float GetPixelsPerDip(object clientDrawingContext)
clientDrawingContext
objectThe drawing context passed to GrapeCity.Documents.DX.DirectWrite.TextLayout.Draw_(System.IntPtr,System.IntPtr,System.Single,System.Single).
the number of physical pixels per DIP
Because a DIP (device-independent pixel) is 1/96 inch, the pixelsPerDip value is the number of logical pixels per inch divided by 96.
Determines whether pixel snapping is disabled. The recommended default is FALSE, unless doing animation that requires subpixel vertical placement.
bool IsPixelSnappingDisabled(object clientDrawingContext)
clientDrawingContext
objectThe context passed to IDWriteTextLayout::Draw.
Receives TRUE if pixel snapping is disabled or FALSE if it not.