Graphics::SetPageUnit メソッド (gdiplusgraphics.h)

Graphics::SetPageUnit メソッドは、この Graphics オブジェクトの測定単位を設定します。 ページ単位は、ページ座標をデバイス座標に変換するページ変換に属します。

構文

Status SetPageUnit(
  [in] Unit unit
);

パラメーター

[in] unit

種類: 単位

この Graphics オブジェクトの測定単位を指定する Unit 列挙体の要素。

戻り値

種類: 状態

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

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

要件

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

関連項目

グラフィックス

Graphics::GetDpiX

Graphics::GetDpiY

Graphics::GetPageScale

Graphics::GetPageUnit

Graphics::SetPageScale

座標系の種類

単位