[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DirectWrite.IPixelSnapping

Interface IPixelSnapping

Namespace
GrapeCity.Documents.DX.DirectWrite
Assembly
GcDocs.DX.Windows.dll

IDWritePixelSnapping

[Guid("eaf3a2da-ecf4-4d24-b644-b34f6842024b")]
[Shadow(typeof(PixelSnappingShadow))]
public interface IPixelSnapping : ICallbackable, IDisposable
Inherited Members
System.IDisposable.Dispose()

Methods

GetCurrentTransform(object)

Gets a transform that maps abstract coordinates to DIPs.

Matrix3x2 GetCurrentTransform(object clientDrawingContext)

Parameters

clientDrawingContext object

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

Returns

Matrix3x2

a structure which has transform information for pixel snapping.

GetPixelsPerDip(object)

Gets the number of physical pixels per DIP.

float GetPixelsPerDip(object clientDrawingContext)

Parameters

clientDrawingContext object

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

Returns

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.

IsPixelSnappingDisabled(object)

Determines whether pixel snapping is disabled. The recommended default is FALSE, unless doing animation that requires subpixel vertical placement.

bool IsPixelSnappingDisabled(object clientDrawingContext)

Parameters

clientDrawingContext object

The context passed to IDWriteTextLayout::Draw.

Returns

bool

Receives TRUE if pixel snapping is disabled or FALSE if it not.