开发者

Cocoa QTMovie - How can i change the duration of each frame being added to my movie?

I am creating a movie by addoing image frames to my QTMovie, every frame i开发者_如何学Pythons suppose to show up for about 0.2 seconds. But the closest I have got was 1 second per frame. I tried etering amounts less than 1 into my QTTime but that way my movie length would be 0 seconds, the documentation doesn't describe what the parameters in QTMakeTime are. Any idea how to achieve this?

QTTime frameDuration = QTMakeTime(1, 1);
for (//here goes my loop to read each frame)
{
     [movie addImage:img forDuration:frameDuration withAttributes:dict];
}


the second parameterf is the number of frames per second QTTime frameDuration = QTMakeTime(1, 7); this means 7 frames per second which worked fine

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜