IXpsOMPath::SetSnapsToPixels method

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

  • snapsToPixels [in]
    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

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Header

Xpsobjectmodel.h

IDL

XpsObjectModel.idl

See also

IXpsOMPath

XML Paper Specification