矢量线形符号文件格式设计

来源:互联网 发布:linux 百度云盘同步 编辑:程序博客网 时间:2024/05/10 01:52

本文来自李明子csdn博客(http://blog.csdn.net/free1985),商业转载请联系博主获得授权,非商业转载请注明出处!

本格式为笔者2010年9月设计,用于矢量线形符号的存储。

1 索引文件

扩展名:lsi
用途:线形符号在线形符号文件中的索引;
依赖文件:无;
组织方式:文件头+记录;
文件头:100字节定长(预留);
记录:16字节定长。

位 置 域 值 数据类型 Byte 0 线形符号名称 cName char Byte 12 起始位置 起始位置 Long

2 记录文件

扩展名:.lsd
用途:线型文件的存储;
依赖文件:线形符号索引文件;
组织方式:文件头+记录;
文件头:100字节定长文件头(预留);
记录:变长;

位 置 域 值 数据类型 Byte 0 线符号层数 nLayer int Byte 4 线色红色分量 LineColor.nR int Byte 8 线色绿色分量 LineColor.nG int Byte 12 线色蓝色分量 LineColor.nB int Byte 16 线宽 nWidth int Byte 20 透明度 fOpacity float Byte 24 连接方式 nLineJoin int Byte 28 线头样式 nLineCap int Byte 32 虚线队列组数 nDashGroup int Byte 36 虚线队列 pDashArray int …… …… …… …… Byte 36+4* nDashGroup 线色红色分量 LineColor.nR int …… …… …… ……