IXpsOMCanvas::SetUseAliasedEdgeMode method (xpsobjectmodel.h)

Sets the value that determines whether the edges of objects in this canvas will be rendered using the aliased edge mode.

Syntax

HRESULT SetUseAliasedEdgeMode(
  [in] BOOL useAliasedEdgeMode
);

Parameters

[in] useAliasedEdgeMode

The Boolean value that determines whether the edges of child objects in this canvas will be rendered using the aliased edge mode.

Value Meaning
TRUE
The edges of objects in the canvas are to be rendered without anti-aliasing using the aliased edge mode. This includes any objects that have this value set to FALSE.

In the document markup, this corresponds to the RenderOptions.EdgeMode attribute having the value of Aliased.

FALSE
The edges of objects in the canvas are to be rendered in the default manner.

In the document markup, this corresponds to the RenderOptions.EdgeMode attribute being absent.

Return value

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

Remarks

This property corresponds to the RenderOptions.EdgeMode attribute of the Canvas element in the document markup.

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

IXpsOMCanvas

XML Paper Specification