首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使用Flex/Actionscript将图像缩放到全屏

如何使用Flex/Actionscript将图像缩放到全屏
EN

Stack Overflow用户
提问于 2012-01-13 10:00:19
回答 1查看 691关注 0票数 0

我仍在努力用Flashbuilder将Java/Eclipse中的应用程序构建转换为Flex/Actionscript。现在我找不到我应该如何实现一个图像,以覆盖孔屏幕。在我当前的应用程序中,我使用了相对布局和

代码语言:javascript
复制
    <ImageView
    android:id="@+id/img"
    android:scaleType="centerCrop"
    android:layout_width="fill_parent"
    android:layout_height="0dip"
    android:layout_above="@id/bottom"
    android:layout_below="@id/rubrik"
    />  

但我不知道如何在Flex视图中定义它。

EN

回答 1

Stack Overflow用户

发布于 2012-01-22 01:57:17

看看这个所以问题

您需要修改scaleMode属性。

代码语言:javascript
复制
<s:Image scaleMode="BitmapScaleMode.STRETCH" x="0" y="0" height="100%" width="100%" source="@Embed('assets/example.jpg')"/>

您可以使用BitmapScaleMode.STRETCH、BitmapScaleMode.ZOOM或BitmapScaleMode.LETTERBOX。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8848750

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档