DrawingAttributes.IgnorePressure 속성

정의

렌더링된 Stroke의 두께가 적용된 압력에 따라 변경되는지 여부를 나타내는 값을 가져오거나 설정합니다.

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

속성 값

Boolean

스트로크 두께가 일정함을 나타내려면 true이고, 압력이 증가할 때 렌더링된 Stroke의 두께가 늘어남을 나타내려면 false입니다. 기본값은 false입니다.

예제

다음 예제에서는 설정 하는 방법에 설명 합니다 IgnorePressure 속성입니다. 가정 애플리케이션에 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에서 일반적으로 사용 되지 않습니다.

적용 대상