Share via


IInkDrawingAttributes::AntiAliased

4/8/2010

Gets or sets the IInkDrawingAttributes value that indicates whether a stroke is antialiased.

Syntax

[propput] HRESULT put_AntiAliased ([in] VARIANT_BOOL AntiAliased);
[propget] HRESULT get_AntiAliased ([out, retval] VARIANT_BOOL 
    *AntiAliased
);

Parameters

  • AntiAliased
    The value that indicates whether a stroke is antialiased.

    If set to TRUE, the default, the drawn ink is antialiased.

    If set to FALSE, the drawn ink is not antialiased.

    This property is read/write.

Return Value

HRESULT value Description

S_OK

Success.

E_POINTER

The AntiAliased parameter is an invalid pointer.

E_INK_EXCEPTION

An exception occurred inside the method.

E_INVALIDARG

The flag is invalid.

Remarks

If a stroke is antialiased, the foreground and background colors along the edge of the ink are blended to increase the visible smoothness.

Antialiasing improves the quality of rendering by making ink appear smoother and sharper, especially on lower resolution displays. However, antialiasing incurs added performance. Use it judiciously.

Requirements

Header msinkaut.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile 6 Classic and later, Windows Mobile 6 Professional and later

See Also

Concepts

Windows Mobile Ink Reference