摘要
电脑绗缝图案中的矢量化字符采用TrueType字体。TrueType字体分别以直线和二次B样条曲线描述字符轮廓的图形信息。利用WindowsAPI函数,通过设置返回字符轮廓线数和线型判断,并用递推公式计算二次B样条曲线,可获取描述字符轮廓线的点坐标,完成其矢量化处理。最后通过AutoCAD实现其坐标变换,再等距化处理得到字符图形的绗缝线段。
TrueType fonts are used in the character vectorization in the pattern of computerized quilting. Graphics information of characters outline is described with beeline and quadratic B-spline curves of TrueType fonts. By utilizing Windows API functions, setting retrieving the outline for a character and judging the line-type, computing the quadratic B-spline curves with recursion formulas, the coordinate for describing a character's outline is obtained and the character vectorization is achieved. Finally, the coordinate transform is implemented in AutoCAD and the quilting lines of characters pattern are obtained by isometric process.
出处
《兵工自动化》
2003年第6期23-24,共2页
Ordnance Industry Automation
基金
广东省自然科学基金资助项目(000383)