Graphics::GetVisibleClipBounds(RectF*) 메서드(gdiplusgraphics.h)

Graphics::GetVisibleClipBounds 메서드는 이 Graphics 개체의 표시되는 클리핑 영역을 묶는 사각형을 가져옵니다. 표시되는 클리핑 영역은 이 Graphics 개체의 클리핑 영역과 창의 클리핑 영역의 교차점입니다.

구문

Status GetVisibleClipBounds(
  RectF *rect
);

매개 변수

rect

표시되는 클리핑 영역을 묶는 사각형을 수신하는 RectF 개체에 대한 포인터입니다.

반환 값

메서드가 성공하면 Status 열거형의 요소인 확인을 반환합니다.

메서드가 실패하면 Status 열거형의 다른 요소 중 하나를 반환합니다.

설명

예제

다음 예제에서는 Graphics 개체의 클리핑 영역을 설정합니다. 그런 다음 표시되는 클리핑 영역을 묶고 해당 사각형을 채우는 사각형을 가져옵니다.

VOID Example_GetVisibleClipBounds2(HDC hdc)
{
   Graphics graphics(hdc);

   // Set the clipping region.
   graphics.SetClip(RectF(100.0f, 100.0f, 200.0f, 100.0f));

   // Get a bounding rectangle for the clipping region.
   RectF boundRect;
   graphics.GetVisibleClipBounds(&boundRect);

   // Fill the bounding rectangle.
   graphics.FillRectangle(&SolidBrush(Color(255, 0, 0, 0)), boundRect);
}

요구 사항

   
머리글 gdiplusgraphics.h

참고 항목

GetClipBounds 메서드

그래픽

그래픽::IsVisibleClipEmpty

IsVisible 메서드

RectF