开发者

AS3 How do you scale video down?

I have a webcam capturing video at a certain resolution, but I want to display it at a lower resolution for preview purposes.

When I scale the video down using another another video object set at this lower r开发者_如何转开发es, the image quality seems to be quite bad.

What is the best way of doing this?


On the video object set

video.smoothing = true;


set smoothing to true and change the scaleX and scaleY properties.

myVideo.smoothing = true;
myVideo.scaleX = myVideo.scaleY = 0.5;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜