我有一个我在Flex中编写的图像查看器,它根据浏览器的大小来缩放您当前正在查看的图像的大小.这是标签的样子:
<mx:Image id="img"
maintainAspectRatio="true"
source="{horizontalList.selectedItem.image}-large.jpg"
height="100%"
horizontalCenter="0"
horizontalAlign="center"
top="5"
width="{horizontalList.width}"
updateComplete="onImageChange()"
click="onImgClick()"
/>
Run Code Online (Sandbox Code Playgroud)
原始图像大小总是大于浏览器的区域,不幸的是,Flex似乎没有很好地缩小图像.事实上,如果我使用它的图像标签,IE中的HTML会做得更好.Flex中是否存在用于缩放的"质量"设置?
谢谢.