DrawingAttributes.FitToCurve 속성

정의

Stroke를 렌더링하는 데 베지어 다듬기가 사용되는지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property bool FitToCurve { bool get(); void set(bool value); };
public bool FitToCurve { get; set; }
member this.FitToCurve : bool with get, set
Public Property FitToCurve As Boolean

속성 값

Boolean

베지어 다듬기를 사용하여 Stroke를 렌더링하려면 true이고, 그렇지 않으면 false입니다. 기본값은 false입니다.

예제

다음 예제에서는 설정 하는 방법에 설명 합니다 FitToCurve 속성입니다. 가정 애플리케이션에 InkCanvas 호출 inkCanvas1, 두 개의 DrawingAttributes 라는 개체 inkDAhighlighterDA합니다. 전체 예제를 참조 하세요.를 DrawingAttributes 클래스 개요입니다.

// Set up the DrawingAttributes for the pen.
inkDA = new DrawingAttributes();
inkDA.Color = Colors.SpringGreen;
inkDA.Height = 5;
inkDA.Width = 5;
inkDA.FitToCurve = false;
inkDA.StylusTipTransform = new Matrix(1, 0, 0, 5, 0, 0);

// Set up the DrawingAttributes for the highlighter.
highlighterDA = new DrawingAttributes();
highlighterDA.Color = Colors.Orchid;
highlighterDA.IsHighlighter = true;
highlighterDA.IgnorePressure = true;
highlighterDA.StylusTip = StylusTip.Rectangle;
highlighterDA.Height = 30;
highlighterDA.Width = 10;

inkCanvas1.DefaultDrawingAttributes = inkDA;
' Set up the DrawingAttributes for the pen.
inkDA = New Ink.DrawingAttributes()
With inkDA
    .Color = Colors.SpringGreen
    .Height = 5
    .Width = 5
    .FitToCurve = True
    .StylusTipTransform = New Matrix(1, 0, 0, 1, 20, 0)
End With

' Set up the DrawingAttributes for the highlighter.
highlighterDA = New Ink.DrawingAttributes()
With highlighterDA
    .Color = Colors.Orchid
    .IsHighlighter = True
    .IgnorePressure = True
    .StylusTip = StylusTip.Rectangle
    .Height = 30
    .Width = 10
End With

inkCanvas1.DefaultDrawingAttributes = inkDA

설명

XAML 텍스트 사용

이 속성 XAML에서 일반적으로 사용 되지 않습니다.

적용 대상