BitMap Scaling : Image Scale « Graphics « Flex






BitMap Scaling

BitMap Scaling
            
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" styleName="plain" horizontalAlign="center">
  
  <mx:HBox horizontalGap="50" verticalAlign="middle">
    <mx:Image source="logo.png"/>
    <mx:Image source="logo.png" height="90" width="90"/>
  </mx:HBox>
  
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Scale an image by setting its width and heightScale an image by setting its width and height
2.Scale an Image with Embed settingScale an Image with Embed setting
3.Using postLayoutTransformOffsets property to modify the position and scale of a component.Using postLayoutTransformOffsets property to modify the position and scale of a component.
4.Using 9-slice scaling to maintain a set border, regardless of how the image itself is resized.