다음을 통해 공유


ID2D1CommandSink::D rawRectangle 메서드(d2d1_1.h)

사각형을 그립니다.

구문

HRESULT DrawRectangle(
  [in]           const D2D1_RECT_F *rect,
  [in]           ID2D1Brush        *brush,
                 FLOAT             strokeWidth,
  [in, optional] ID2D1StrokeStyle  *strokeStyle
);

매개 변수

[in] rect

형식: const D2D1_RECT_F*

명령 싱크에 그릴 사각형입니다.

[in] brush

형식: ID2D1Brush*

기하 도형을 스트로크하는 데 사용되는 브러시입니다.

strokeWidth

형식: FLOAT

스트로크의 너비입니다.

[in, optional] strokeStyle

형식: ID2D1StrokeStyle*

스트로크의 스타일입니다.

반환 값

형식: HRESULT

메서드가 성공하면 S_OK 반환합니다. 실패하면 HRESULT 오류 코드를 반환합니다.

요구 사항

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

추가 정보

ID2D1CommandList::Stream

ID2D1CommandSink

ID2D1RenderTarget::D rawRectangle