Partager via


IInkDrawingAttributes::FitToCurve

4/8/2010

Gets or sets the IInkDrawingAttributes value that specifies whether Bezier smoothing is used to render ink.

Syntax

[propput] HRESULT put_FitToCurve ([in] VARIANT_BOOL FitToCurve);
[propget] HRESULT get_FitToCurve ([out, retval] VARIANT_BOOL 
    *FitToCurve
);

Parameters

  • FitToCurve
    Returns or sets the BOOLEAN value that specifies how the ink is rendered.

    If set to TRUE, the ink is rendered as a series of curves.

    If set to FALSE, the default, the ink is rendered as lines between pen sample points.

    This property is read/write.

Return Value

HRESULT value Description

S_OK

Success.

E_POINTER

The FitToCurve parameter is an invalid pointer.

E_INK_EXCEPTION

An exception occurred inside the method.

E_INVALIDARG

The specified mode is invalid.

Remarks

Bezier smoothing renders ink as a series of curves instead of as lines between pen sample points. Rendering ink as a series of curves is useful for smoothing the ink, especially when the person writing the ink has unsteady writing.

If you set this property while collecting a stroke or strokes, the ink does not render as a series of curves until it is redrawn or refreshed.

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