이 문서는 기계로 번역한 것입니다. 원본 텍스트를 보려면 포인터를 문서의 문장 위로 올리십시오. 추가 정보
번역
원본
이 항목은 아직 평가되지 않았습니다.- 이 항목 평가

Stroke.GetBezierStylusPoints 메서드

스타일러스 포인트를 반환의 Stroke 시기를 사용 하 여 FitToCurve 입니다 true.

네임스페이스:  System.Windows.Ink
어셈블리:  PresentationCore(PresentationCore.dll)
public StylusPointCollection GetBezierStylusPoints()

반환 값

형식: System.Windows.Input.StylusPointCollection
A StylusPointCollection 의 등뼈를 따라 스타일러스 포인트를 포함 한 StrokeFitToCurve 입니다true

GetBezierStylusPoints 메서드에서 반환 된 새 StylusPointCollection 포함 된 스타일러스가 가리키는 Stroke 때 사용 하는 FitToCurve 속성에는 DrawingAttributes 속성을 설정 true. 된 스타일러스 포인트를 얻을 수 사용 하는 경우 FitToCurve 로 설정 됩니다 false를 사용 하는 StylusPoints 속성.

다음 예제에서는 각 원을 그리는 방법을 보여 줍니다. StylusPointStroke. 경우는 FitToCurve 속성을 설정 true, GetBezierStylusPoints 스타일러스 포인트를 얻는 데 사용 됩니다. 그렇지 않은 경우는 StylusPoints 속성이 사용 됩니다.


protected override void DrawCore(DrawingContext context, DrawingAttributes overrides)
{
    // Draw the stroke. Calling base.DrawCore accomplishes the same thing.
    Geometry geometry = GetGeometry(overrides);
    context.DrawGeometry(new SolidColorBrush(overrides.Color), null, geometry);

    StylusPointCollection points;

    // Get the stylus points used to draw the stroke.  The points used depends on
    // the value of FitToCurve.
    if (this.DrawingAttributes.FitToCurve)
    {
        points = this.GetBezierStylusPoints();
    }
    else
    {
        points = this.StylusPoints;
    }

    // Draw a circle at each stylus point.
    foreach (StylusPoint p in points)
    {
        context.DrawEllipse(null, new Pen(Brushes.Black, 1), (Point)p, 5, 5);
    }

}


.NET Framework

4.5, 4, 3.5, 3.0에서 지원

.NET Framework Client Profile

4, 3.5 SP1에서 지원

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008(서버 코어 역할은 지원되지 않음), Windows Server 2008 R2(서버 코어 역할은 SP1 이상에서 지원, Itanium은 지원되지 않음)

.NET Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
이 정보가 도움이 되었습니까?
(1500자 남음)

커뮤니티 추가 항목

추가
© 2013 Microsoft. All rights reserved.