다음을 통해 공유


DynamicRenderer.DrawingAttributes 속성

업데이트: 2007년 11월

DynamicRenderer 개체에 사용되는 DrawingAttributes 개체를 가져오거나 설정합니다.

네임스페이스:  Microsoft.StylusInput
어셈블리:  Microsoft.Ink(Microsoft.Ink.dll)

구문

‘선언
Public Property DrawingAttributes As DrawingAttributes
‘사용 방법
Dim instance As DynamicRenderer
Dim value As DrawingAttributes

value = instance.DrawingAttributes

instance.DrawingAttributes = value
public DrawingAttributes DrawingAttributes { get; set; }
public:
property DrawingAttributes^ DrawingAttributes {
    DrawingAttributes^ get ();
    void set (DrawingAttributes^ value);
}
/** @property */
public DrawingAttributes get_DrawingAttributes()
/** @property */
public  void set_DrawingAttributes(DrawingAttributes value)
public function get DrawingAttributes () : DrawingAttributes
public function set DrawingAttributes (value : DrawingAttributes)

속성 값

형식: Microsoft.Ink.DrawingAttributes
DynamicRenderer 개체에 사용되는 DrawingAttributes 개체입니다.

설명

사용자가 스트로크를 그리는 도중 이 속성이 변경되면 새 그리기 특성은 현재 스트로크에는 적용되지 않고 다음 번에 그리는 스트로크에 적용됩니다. 예를 들어 IStylusAsyncPlugin 구현의 StylusDown 메서드에서 이 속성을 설정해도 현재 만들어지고 있는 스트로크는 영향을 받지 않습니다.

DisplaySettingsChanged 이벤트가 발생할 때 DisplaySettingsChanged 이벤트 처리기에서 DrawingAttributes 개체의 WidthHeight 속성을 다시 계산해야 합니다. 이는 DisplaySettingsChanged 이벤트로 인해 dpi가 변경될 수도 있기 때문입니다.

그리기 특성의 기본값은 다음과 같습니다.

그리기 특성

AntiAliased

true

Color

Color.Black

FitToCurve

false

Height

1

IgnorePressure

false

PenTip

Ball

RasterOperation

RasterOperation

Transparency

0

Width

53

예제

이 C# 예제에서는 DynamicRenderer 개체인 theDynamicRenderer를 사용하여 동적으로 렌더링된 스트로크의 색을 빨간색으로 설정합니다.

theDynamicRenderer.DrawingAttributes.Color = Color.Red;

이 Visual Basic .NET 예제에서는 DynamicRenderer 개체인 theDynamicRenderer를 사용하여 동적으로 렌더링된 스트로크의 색을 빨간색으로 설정합니다.

theDynamicRenderer.DrawingAttributes.Color = Color.Red

플랫폼

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

DynamicRenderer 클래스

DynamicRenderer 멤버

Microsoft.StylusInput 네임스페이스

Stroke.DrawingAttributes