本文來自李明子csdn博客(http://blog.csdn.net/free1985),商業轉載請聯繫博主獲得授權,非商業轉載請註明出處!
本格式爲筆者2010年9月設計,用於矢量文字符號的存儲。
擴展名:.tsd
用途:矢量文字符號的存儲;
依賴文件:無;
組織方式:文件頭+記錄;
文件頭:100字節定長文件頭(預留);
記錄:116字節定長;
位 置 | 域 | 值 | 數據類型 | |
Byte 0 | 文字符號名稱 | cName[12] | char | |
Byte 12 | 是否避免文字出現在地圖邊緣 | bAvoid_edges | BOOL | |
Byte 16 | 兩個字符間的距離 | nCharacter_spacing | int | |
Byte 20 | 字符的水平位移,以像素爲單位 | nDx | int | |
Byte 24 | 字符的垂直位移,以像素爲單位 | nDy | int | |
Byte 28 | 字體名稱 | cFontset_name | char | |
Byte 68 | 文字填充顏色紅色分量 | fillColor.nR | int | |
Byte 72 | 文字填充顏色綠色分量 | fillColor.nG | int | |
Byte 76 | 文字填充顏色藍色分量 | fillColor.nB | int | |
Byte 80 | 文字光暈(描邊)顏色紅色分量 | halo_fillColor.nR | int | |
Byte 84 | 文字光暈(描邊)顏色綠色分量 | halo_fillColor.nG | int | |
Byte 88 | 文字光暈(描邊)顏色藍色分量 | halo_fillColor.nB | int | |
Byte 92 | 文字光暈(描邊)寬度,以像素爲單位 | nHalo_radius | int | |
Byte 96 | 字符串(標籤)間的最小距離 | nMin_distance | int | |
Byte 100 | 文字的透明度 | fOpacity | float | |
Byte 104 | 文字放置方式 | nPlacement | int | |
Byte 108 | 文字大小 | nSize | int | |
Byte 112 | 一條線中重複文字間的空格,以像素爲單位 | nSpacing | int | |
…… | …… | …… | …… |