- UID
- 2
- 积分
- 8682
- 帖子
- 2905
- 主题
- 199
- 论坛币
- 11236
- 威望
- 16
- EP值
- 2348
- MP值
- 15
- 阅读权限
- 200
- 注册时间
- 2011-8-3
- 在线时间
- 2597 小时
- 最后登录
- 2024-2-26
|
ALKOON 发表于 2014-12-16 16:47
round(PIX_ori[1][1])
It's better than
_Height[_i][_j]
_Height[_i][_j] should be equal with the original PIX[1][1] (PIX_t), since 'PIX' has the structure ((initX, initY), (width, height),...), but 'PIX' may be manipulated, applied with filters, transformations, etc. some of them will enlarge or reduce PIX, such as PixBlur (enlarges a bit), so in this case _Height[_i][_j] will be smaller than PIX[1][1] (what's more, after combination with PIX generated from FontOut font, PIX will be even larger, _Height[_i][_j] should be with the same metric as PIXs directly generated from Font)
so, as a conclusion,
the solution provided by saiyaku is better.
but still cannot figure why not cut exactly through every middle of texts,
I suggest you using tcaxLog() --- to dump information into log files, or simply use Python built-in print(),
and with the help of Pause() function, to do some debug.
|
|