全屏 Flash 资源尺寸
我正在创建一个具有全屏模式的媒体播放器(主要是视频,但有一些图形界面)。然而,在全屏显示之前,它相对较小(大约 620x340),并且全屏显示通常会是分辨率的两倍左右。
准备文件中的视频和资源以便它们在全屏和较小尺寸下看起来不错的最佳方法是什么?我还想将文件大小保持在最小(在合理范围内)。
顺便说一句,大多数图形都是位图而不是矢量。
I'm creating a media player (mostly video but with some graphical interfaces) that has a full-screen mode. However, before going fullscreen it's relatively small (about 620x340) and going fullscreen would typically be about double the resolution.
What is the best way to prepare the videos and assets in the file so they look good at fullscreen and at the smaller size? I want to also keep the file size to a minimum (within reason).
By the way, most of the graphics will be bitmaps rather than vector.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为最好的方法是不缩放界面,只缩放视频。您应该编写代码来设置大小,而不是依赖默认的缩放行为。
将应用程序的scaleMode设置为无比例:
然后,当您将displayState切换为全屏时,只需根据屏幕边缘移动所有内容即可。
I think the best way, is to not scale your interface, just the video. And you should write code to set the size rather than relying on the default scaling behaviour.
Set scaleMode to no scale for your application:
Then when you switch your displayState to fullscreen, just move everything based on the screen edges.
我同意 TandemAdam 关于不扩展界面的建议。我还想补充一点,您应该尝试为 flash.media.Video 打开
smoothing
,为 mx.controls.Image 打开smoothBitmapContent
(相应的 Flex 4 组件也有类似的属性) ),如果您打算将这些类型的内容缩放到超出其实际分辨率。I agree with TandemAdam's suggestion on not scaling your interface. I'd also add that you should try turning on
smoothing
for flash.media.Video andsmoothBitmapContent
for mx.controls.Image (there are analogous properties for corresponding Flex 4 components), if you intend to scale those types of content beyond their actual resolutions.