本帖最后由 diseac 于 2009-9-27 17:38 编辑
问题1:
ImageReader (string "file", int "start", int "end", float "fps", bool "use_DevIL", bool "info", string "pixel_type")
ImageSource (string "file", int "start", int "end", float "fps", bool "use_DevIL", bool "info", string "pixel_type")
问题2:- image=ImageSource("...")
- ow=视频宽度
- oh=视频高度
- iw=image.width
- ih=image.height
- image.addborders( (ow-iw)/2, (oh-ih)/2, (ow-iw)/2, (oh-ih)/2 )
复制代码 可以根据这个自己写成function,但要注意小数的问题。
P.S. 有个叫applyevery的插件可以做循环,不妨试试。 |