Share via


Graphics::SetInterpolationMode 方法 (gdiplusgraphics.h)

Graphics::SetInterpolationMode 方法會設定此 Graphics 物件的插補模式。 插補模式會決定縮放或旋轉影像時所使用的演算法。

語法

Status SetInterpolationMode(
  [in] InterpolationMode interpolationMode
);

參數

[in] interpolationMode

類型: InterpolationMode

指定插補模式之 InterpolationMode 列舉的 元素。

傳回值

類型: 狀態

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

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

規格需求

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

另請參閱

圖形

Graphics::GetInterpolationMode

InterpolationMode

在縮放期間使用插補模式控制影像品質