10-10-2006, 06:09 PM
i found a commercial ocx ...
http://www.viscomsoft.com/products/videoeditgold/
what does a minus mean when returning a handle ?
Macro11
http://www.viscomsoft.com/products/videoeditgold/
what does a minus mean when returning a handle ?
Macro11
typelib VIDEOEDITLib {F2BD1C8B-41F5-4842-AC48-3B94E1F85FCE} 1.0
VIDEOEDITLib.VideoEdit a._create
str v="D:\filme\Everybody.Hates.Chris.S01E01.mpg"
int d=a.GetFileDuration(v)
int fr=a.GetFileFrameRate(v)
int allframes=fr*d
int step= d/12
str outfile
;out a.GetFileFrameRate(v)
;a.GetFrameBySize( v 6 "c:\newbitmap.bmp" 240 180)
;out step
_i=step;int i
ARRAY(int) hbitmap.create(12)
rep 3
,hbitmap[i] = a.GetFrameBySize2HBitmap(v _i 240 180)
,;outfile.format("c:\test_%i.bmp" _i)
,;a.GetFrameBySize(v _i outfile 240 180)
,;of[i]=outfile
,_i=_i+step;i=i+1
out hbitmap[0]