应用的宽度/高度比例相同
如何制作具有相同宽高比的应用程序?我有一个宽度 = 800 高度 = 600 的应用程序。它的宽度 = 1.33*高度,当我将宽度更改为 1024 时,我希望高度自动更改为 768。
How can I make an application with the same ratio width/height? I have an application with width = 800 height = 600. Its width = 1.33*height and when I change the width to 1024 I want the height to change to 768 automatically.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的意思是您的 swf 改变了它的大小吗?
您需要 swffit 来完成此操作。
如果你想改变你的电影内容,你必须计算比率,或多或少像这样:
比率=宽度/高度;
新高度=新宽度/比率;
宽度反之亦然……
Do you mean your swf change it´s size?
you would need swffit to do it.
if you want to change your content on your movie, you have to calculate the ratio, more or less like this:
ratio = width/height;
newHeight = newWidth/ratio;
and vice-versa for the width…