Graphics::SetClip(constGraphicsPath*,CombineMode) メソッド (gdiplusgraphics.h)

Graphics::SetClip メソッドは、この Graphics オブジェクトのクリッピング領域を、それ自体とグラフィックス パスで指定された領域の組み合わせである領域に更新します。 パス内の図形が閉じられていない場合、このメソッドは、閉じていない図形を、図形の始点と終点を接続する直線で閉じているかのように扱います。

構文

Status SetClip(
  [in] const GraphicsPath *path,
  [in] CombineMode        combineMode
);

パラメーター

[in] path

型: const GraphicsPath*

この Graphics オブジェクトのクリッピング領域と組み合わせる領域を指定する GraphicsPath オブジェクトへのポインター。

[in] 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

Graphicspath

IntersectClip メソッド

TranslateClip メソッド