- UID
- 1462
- 积分
- 667
- 帖子
- 77
- 主题
- 13
- 论坛币
- 1091
- 威望
- 2
- EP值
- 447
- MP值
- 0
- 阅读权限
- 50
- 注册时间
- 2013-9-6
- 在线时间
- 141 小时
- 最后登录
- 2024-5-25
|
本帖最后由 Alex 于 2013-11-3 21:21 编辑
OK
I don't know actually which function have to write first..
this is the code- PIX_t = TextPix(Font, _txt)
-
- dx = _x - int(_a / 2 + 0.5) + PIX_t[0][0]
- dy = _y - int(_Fs / 2 + 0.5) + PIX_t[0][1]
- dur = _KT * 10
- PIX_t = PixTexture(PIX_t, PIX_tex)
- PIX_out = TextPix(FontOut, _txt)
- PIX_out = PixTexture(PIX_out, PIX_tex2)
- PIX_out = PixColorMul(PIX_out, 1, 1, 1, 0)
- PIX_out = PixBlur(PIX_out, 0)
- PIX_ori = CombinePixs(PIX_out, PIX_t)
- points = PixPoints(PIX_ori)
- pt_num = len(points)
复制代码 and as you said i have to use PixEnlarge(PIX,x,y) function and PixCrop(pix, left, top, right, bottom)
pix = it will be the path on pic right?
x & y is a normal position (_x,_y) or pixs position
pixx = _x - int(_a / 2 + 0.5) + PIX_t[0][0]
pixy = _y - int(_Fs / 2 + 0.5) + PIX_t[0][1])
?
and regarding PixCrop function , pix I think is a path of pic right?!
and what should Instead of (left, top, right, bottom) write? |
|