ImageAttributes::SetWrapMode 方法 (gdiplusimageattributes.h)

ImageAttributes::SetWrapMode 方法會設定這個 ImageAttributes 物件的換行模式。

語法

Status SetWrapMode(
  [in]                WrapMode      wrap,
  [in, ref, optional] const Color & color,
  [in, optional]      BOOL          clamp
);

參數

[in] wrap

類型: WrapMode

WrapMode 列舉的 元素,指定如何使用影像的重複復本來磚區域。

[in, ref, optional] color

類型: const Color

Color 對象的參考 ,指定轉譯影像外部圖元的色彩。 如果 wrap 參數設定為 WrapModeClamp ,而傳遞至 DrawImage 的來源矩形大於影像本身,就會顯示這個色彩。 默認值為 Color () ,這是初始化為黑色的 Color 物件。

[in, optional] clamp

類型: BOOL

此參數在 GDI+ 1.0 版中沒有任何作用。 將此參數設定為 FALSE。 預設值為 FALSE

傳回值

類型: 狀態

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

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

規格需求

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

另請參閱

點陣圖

色彩

映像

ImageAttributes

元檔

重新著色

WrapMode