GdiPlus[16]: IGPLinearGradientBrush 之 SetBlendBellShape、
SetBlendBellShape 方法: 創建基於鐘形曲線的漸變過渡過程; SetBlendTriangularShape 方法: 創建一個從中心色向兩端
GdiPlus[17]: IGPLinearGradientBrush 的其他方法和屬性
LinearColors //屬性; 獲取或設置漸變的起始色和結束色. Rectangle //屬性; 獲取定義漸變的起始點和終結點的矩形區域. Wr
GdiPlus[18]: IGPPathGradientBrush 之 CenterColor、Surround
最簡單的 IGPPathGradIEntBrush 就是有一個中心顏色和一組周邊顏色的漸變. 這裡牽扯到 CenterColor、SurroundColor
GdiPlus[19]: IGPPathGradientBrush 之 SetCenterPoint
測試效果圖: 測試代碼:unit Unit1; interface uses Windows, Messages, SysUtils, Varian
GdiPlus[20]: IGPPathGradientBrush 之 SetFocusScales
測試效果圖: 測試代碼:uses GdiPlus; procedure TForm1.FormPaint(Sender: TObject); var
GdiPlus[21]: IGPPathGradientBrush 之 InterpolationColors
測試效果圖: 測試代碼:uses GdiPlus, GdiPlusHelpers; procedure TForm1.FormPaint(Sender:
GdiPlus[23]: IGPFontFamily
IGPFontFamily 的基本使用:uses GdiPlus, GdiPlusHelpers; procedure TForm1.FormPaint(
GdiPlus[24]: IGPPrivateFontCollection: 分別從文件和內存加載字體
IGPPrivateFontCollection.AddFontFile: 從文件加載字體; IGPPrivateFontCollection.AddMem
GdiPlus[25]: IGPInstalledFontCollection: 獲取已安裝的字體列表
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, G
GdiPlus[26]: IGPPen: 用畫刷建立畫筆
Color 是畫筆的基本屬性, 比較有意思的是可以通過畫刷來建立畫筆. 五種畫刷都可以, 但使用實心畫刷就沒有意義了; 建立後, 通過畫筆的 PenTyp
GdiPlus[27]: IGPPen: Alignment (畫筆對齊)
uses GdiPlus; procedure TForm1.FormPaint(Sender: TObject); var Graphics: IGPG
GdiPlus[28]: IGPPen: 建立復合畫筆
設置畫筆的 CompoundArray 屬性可得到復合畫筆. 它對應的類型是 IGPCompoundArray (IGPCompoundArray = I
GdiPlus[29]: IGPPen: 虛線樣式
通過畫筆的 DashStyle 屬性可設置或讀取虛線樣式. 通過 SetDashPattern 方法或 DashPattern 屬性可自定義虛線樣式.
GdiPlus[30]: IGPPen: 線帽
StartCap 和 EndCap 屬性分別用來讀寫兩段的線帽, 測試圖: StartCap 和 EndCap 測試代碼:uses GdiPlus; pr
重溫delphi之如何快速開發原生ActiveX控件
ActiveX技術雖然是一項古老的技術,但是卻有著廣泛的應用,支付寶的密碼輸入控件,各大銀行的密碼輸入控件,網頁聊天室中的截屏功能,網頁播放器中的p2p播放
GdiPlus[31]: IGPPen: 自定義線帽
自定義線帽可以通過兩個接口: IGPCustomLineCap、IGPAdjustableArrowCap. 後者繼承與前者, 專用於修改箭頭線帽. IG
GdiPlus[32]: IGPPen: LineJoin、MiterLimit
LineJoin 測試效果圖: LineJoin 測試代碼:uses GdiPlus; procedure TForm1.FormPaint(Sender