PathGradientBrush::SetCenterPoint (constPoint&) 方法 (gdipluspath.h)
PathGradientBrush::SetCenterPoint 方法會設定此路徑漸層筆刷的中心點。 根據預設,中心點位於筆刷界限路徑的距心,但您可以將中心點設定為路徑內或外部的任何位置。
語法
Status SetCenterPoint(
[in, ref] const Point & point
);
參數
[in, ref] point
類型: const Point
指定中心點之 Point 物件的參考。
傳回值
類型: 狀態
如果方法成功,它會傳回 Ok,這是 Status 列舉的元素。
如果方法失敗,它會傳回 Status 列舉的其他其中一個專案。
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 | Windows XP、Windows 2000 Professional [僅限桌面應用程式] |
最低支援的伺服器 | Windows 2000 Server [僅限桌面應用程式] |
目標平台 | Windows |
標頭 | gdipluspath.h (包含 Gdiplus.h) |
程式庫 | Gdiplus.lib |
Dll | Gdiplus.dll |
另請參閱
PathGradientBrush::GetCenterColor
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應