矢量文字符号文件格式设计

本文来自李明子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
…… …… …… ……
发布了56 篇原创文章 · 获赞 28 · 访问量 18万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章