ID2D1Factory1::CreateStrokeStyle(constD2D1_STROKE_STYLE_PROPERTIES1&,constFLOAT*,UINT32,ID2D1StrokeStyle1**) 메서드(d2d1_1.h)

ID2D1StrokeStyle1 개체를 만듭니다.

구문

HRESULT CreateStrokeStyle(
  [in, ref] const D2D1_STROKE_STYLE_PROPERTIES1 & strokeStyleProperties,
  [in]      const FLOAT                           *dashes,
            UINT32                                dashesCount,
  [out]     ID2D1StrokeStyle1                     **strokeStyle
);

매개 변수

[in, ref] strokeStyleProperties

형식: const D2D1_STROKE_STYLE_PROPERTIES1

적용할 스트로크 스타일 속성입니다.

[in] dashes

형식: const FLOAT*

대시 및 간격의 너비 배열입니다.

dashesCount

형식: UINT

대시 배열의 크기입니다.

[out] strokeStyle

형식: const ID2D1StrokeStyle1**

이 메서드가 반환되면 새로 만든 스트로크 스타일에 대한 포인터의 주소가 포함됩니다.

반환 값

형식: HRESULT

이 메서드는 HRESULT를 반환합니다. 가능한 값에는 다음 표에 있는 값이 포함되지만, 이에 국한되는 것은 아닙니다.

HRESULT 설명
S_OK 오류가 발생하지 않았습니다.
E_OUTOFMEMORY Direct2D가 호출을 완료하기에 충분한 메모리를 할당할 수 없습니다.
E_INVALIDARG 잘못된 값이 메서드에 전달되었습니다.

설명

D2D1_DASH_STYLE_CUSTOM 지정한 경우에만 대시 배열을 지정하는 것이 유효합니다.

요구 사항

   
지원되는 최소 클라이언트 Windows 7용 Windows 8 및 플랫폼 업데이트 [데스크톱 앱 | UWP 앱]
지원되는 최소 서버 Windows Server 2008 R2용 Windows Server 2012 및 플랫폼 업데이트 [데스크톱 앱 | UWP 앱]
대상 플랫폼 Windows
헤더 d2d1_1.h
라이브러리 D2d1.lib
DLL D2d1.dll

추가 정보

ID2D1Factory1

ID2D1StrokeStyle1