Table of Contents

Interface PixelSnapping

Namespace
SharpDX.DirectWrite
Assembly
SharpDX.Direct2D1.dll
[Guid("eaf3a2da-ecf4-4d24-b644-b34f6842024b")]
public interface PixelSnapping : IUnknown, ICallbackable, IDisposable
Inherited Members

Methods

GetCurrentTransform(object)

Gets a transform that maps abstract coordinates to DIPs.

RawMatrix3x2 GetCurrentTransform(object clientDrawingContext)

Parameters

clientDrawingContext object

The drawing context passed to .

Returns

RawMatrix3x2

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 .

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.