Graphics::SetClip(constRect&,CombineMode) メソッド (gdiplusgraphics.h)

Graphics::SetClip メソッドは、この Graphics オブジェクトのクリッピング領域を、それ自体と四角形の組み合わせである領域に更新します。

構文

Status SetClip(
  [in, ref]      const Rect & rect,
  [in, optional] CombineMode  combineMode
);

パラメーター

[in, ref] rect

型: const Rect

この Graphics オブジェクトのクリッピング領域と組み合わせる四角形への参照。

[in, optional] combineMode

種類: CombineMode

指定した四角形をこの Graphics オブジェクトのクリッピング領域と結合する方法を指定する CombineMode 列挙体の要素。 既定値は CombineModeReplace です。

戻り値

種類: 状態

メソッドが成功した場合は、 Status 列挙の要素である Ok を返します。

メソッドが失敗した場合は、 Status 列挙体の他の要素のいずれかを返します。

要件

   
サポートされている最小のクライアント Windows XP、Windows 2000 Professional [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows 2000 Server [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー gdiplusgraphics.h (Gdiplus.h を含む)
Library Gdiplus.lib
[DLL] Gdiplus.dll

こちらもご覧ください

クリッピング

領域を使用したクリッピング

CombineMode

GetClipBounds メソッド

グラフィックス

Graphics::GetClip

Graphics::IsClipEmpty

Graphics::ResetClip

IntersectClip メソッド

Rect

TranslateClip メソッド