2012年2月21日

[C++] 在imagemagick里面计算文本的宽度

摘要: image.font(font);image.fontPointsize(fontSize);TypeMetric metric;image.fontTypeMetrics(txt, &metric);说明:先在图片对象里面指定字体及字体大小,然后就可以通过fontTypeMetrics()来计算... 阅读全文

posted @ 2012-02-21 16:18 如果蜗牛有爱情 阅读(194) 评论(0) 推荐(0) 编辑

导航