IXpsOMPath::SetSnapsToPixels method (xpsobjectmodel.h)

Sets a Boolean value that indicates whether the path will be snapped to device pixels when that path is being rendered.

Syntax

HRESULT SetSnapsToPixels(
  [in] BOOL snapsToPixels
);

Parameters

[in] snapsToPixels

A Boolean value that indicates whether to snap the path to the device pixels when that path is being rendered. The following table describes the values possible for this parameter.

Value Meaning
TRUE
Snap the path to the device pixels.
FALSE
Do not snap the path to the device pixels.

Return value

If the method succeeds, it returns S_OK; otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header xpsobjectmodel.h

See also

IXpsOMPath

XML Paper Specification