Share via


Graphics::SetPageScale 方法 (gdiplusgraphics.h)

Graphics::SetPageScale 方法會設定此 Graphics 對象的頁面轉換縮放比例。 頁面轉換會將頁面座標轉換為裝置座標。

語法

Status SetPageScale(
  [in] REAL scale
);

參數

[in] scale

類型: REAL

指定縮放比例的實數。

傳回值

類型: 狀態

如果方法成功,它會傳回Ok,這是 Status 列舉的元素。

如果方法失敗,它會傳回 Status 列舉的其他其中一個專案。

規格需求

需求
最低支援的用戶端 Windows XP、Windows 2000 Professional [僅限桌面應用程式]
最低支援的伺服器 Windows 2000 Server [僅限桌面應用程式]
目標平台 Windows
標頭 gdiplusgraphics.h (包含 Gdiplus.h)
程式庫 Gdiplus.lib
Dll Gdiplus.dll

另請參閱

圖形

Graphics::GetDpiX

Graphics::GetDpiY

Graphics::GetPageScale

Graphics::GetPageUnit

Graphics::SetPageUnit

座標系統類型

單位