GdiPlus[35]: IGPGraphicsPath (二) 命中測試
本例測試圖: 本例代碼:unit Unit1; interface uses Windows, Messages, SysUtils, Variant
GdiPlus[36]: IGPGraphicsPath (三) 路徑中的數據
IGPGraphicsPath.PointCount; // 點總數 IGPGraphicsPath.PathPoints; // 點數組, 浮點型
GdiPlus[37]: IGPGraphicsPath (四) 路徑變換
IGPGraphicsPath.Flatten(); //把路徑中的曲線轉換為近似直線段(路徑中只有 BezIEr 線和直線). IGPGraphicsP
詳解 EnumWindows 與 EnumWindowsProc
// EnumWindows 的功能是遍歷所有頂層窗口 function EnumWindows( lpEnumFunc: TFNWndEnumProc;
GdiPlus[38]: IGPGraphicsPath (五) 路徑標記
在路徑中每建立一個圖形都可以同時做個 Marker, 真正使用這些個標記時, 主要通過 IGPGraphicsPathIterator 的 NextMark
GdiPlus[39]: IGPGraphicsPath (六) - 路徑的輔助工具 IGPGraph
IGPGraphicsPathIterator 能遍歷路徑中的子路徑和路徑標記.IGPGraphicsPathIterator.Count; { 點
GdiPlus[40]: 不該忽略的一些基礎結構
這些基礎結構有: TGPSize、TGPSizeF、TGPPoint、TGPPointF、TGPRect、TGPRectF. 它們自身提供了一些方便的功能
GdiPlus[41]: IGPRegion 區域
// 區域建立: TGPRegion.Create(); { 參數可以是矩形、路徑、HRGN、區域數據, 或無參} TGPRegion.FromHRGN
GdiPlus[43]: IGPGraphics (二) 關於文本繪制
IGPGraphics 中繪制文本相關的方法和屬性:IGPGraphics.DrawString(); { 繪制文本 } IGPGraphic
GdiPlus[44]: IGPGraphics (三) 關於文本繪制續 - IGPStringFor
IGPStringFormat 的方法和屬性://方法: IGPStringFormat.GetTabStops(); { 獲取制表位
GdiPlus[45]: IGPGraphics (四) 關於呈現質量與合成模式
相關內容有:IGPGraphics.SmoothingMode; { 繪圖質量 } IGPGraphics.InterpolationMode;
GdiPlus[47]: IGPMatrix 矩陣(二)
IGPMatrix 的屬性與方法://方法 IGPMatrix.Reset; { 重置 Matrix 得到單位矩陣(斜對角線是1其他是0) }
GdiPlus[48]: IGPMatrix 矩陣(三) 關於矩陣的旋轉
矩陣旋轉一個角度, 會關聯到 M11、M12、M21、M22 四個數據, 計算公式如下:┏ ┓ ┃ cos(r) sin(r) 0 ┃ ┃-s
GdiPlus[49]: 圖像(一) 概覽
三個主要的圖像相關接口是: IGPImage、IGPBitmap、IGPMetafile. IGPBitmap、IGPMetafile 都是從 IGPIma
GdiPlus[50]: 圖像(二) 關於 Create
IGPImage 類提供的 Create 方法:Image := TGPImage.Create(文件(或流), Boolean); //其中的布爾值默認