- UID
- 2
- 积分
- 8682
- 帖子
- 2905
- 主题
- 199
- 论坛币
- 11740
- 威望
- 16
- EP值
- 2349
- MP值
- 15
- 阅读权限
- 200
- 注册时间
- 2011-8-3
- 在线时间
- 2597 小时
- 最后登录
- 2024-8-28
|
完整工程: tcas_conv_img.rar- from tcaxPy import *
- def tcaxPy_User():
- file_name = GetVal(val_OutFile) + '.tcas'
- fx_width = GetVal(val_ResolutionX)
- fx_height = GetVal(val_ResolutionY)
- fps = GetVal(val_FXFPS)
- TCAS_FILE = CreateTcasFile(file_name, fx_width, fx_height, fps)
- TCAS_BUF = []
- PIX = ImagePix(abspath('logo.png'))
- dx = (fx_width - PIX[1][0]) / 2 - PIX[0][0] # x middle of the screen
- dy = (fx_height - PIX[1][1]) / 2 - PIX[0][1] # y middle of the screen
- tcas_main(TCAS_BUF, PIX, 500, 5000, dx, dy, 0)
- WriteTcasFile(TCAS_FILE, TCAS_BUF) # write the buffer in memory to the file
- FinTcasFile(TCAS_FILE)
复制代码 等价的ASS, 可供参考.
ass_conv_img.rar
(25.61 KB, 下载次数: 3966)
|
|