Scale an image by setting its width and height : Image Scale « Graphics « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Graphics » Image ScaleScreenshots 
Scale an image by setting its width and height
Scale an image by setting its width and height
           


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
    
    
    <mx:Spacer height="10" />
    <mx:Label text="Scaled Image" />
    <mx:Image source="@Embed('logo.png')" width="100" height="100"/>
    <mx:Image source="@Embed('logo.png')" width="100" height="50" maintainAspectRatio="false"/>
    
    
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Scale an Image with Embed settingScale an Image with Embed setting
2.BitMap ScalingBitMap Scaling
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.
w__w__w_.__j__a_v__a__2___s_.__co_m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.