hi
use object handler for image handling ... inside that u can do resize,
rotate very well...
try this example :
 import mx.controls.Image;
                        import
com.roguedevelopment.objecthandles.ObjectHandleEvent;
                        import
com.roguedevelopment.objecthandles.ObjectHandlesMouseCursors;
                        import
com.roguedevelopment.objecthandles.SelectionManager;

                        [Embed(source="resize_handle.png")]
                        protected var resize_handle:Class;
                        [Embed(source="rotate_handle.png")]
                        protected var rotate_handle:Class;

                        public function flip(evt:MouseEvent):void
                                                {
                                                        var skewMatrix:Matrix 
=evt.currentTarget.transform.matrix;

                                                        if(skewMatrix.a==1)
                                                                {
                                                        skewMatrix.a=-1;
                                                        
skewMatrix.tx=evt.currentTarget.x
+evt.currentTarget.width;
                                                        
evt.currentTarget.transform.matrix = skewMatrix;
                                                                }
                                                        else
                                                                {
                                                                skewMatrix.a=1;
                                                        
skewMatrix.tx=evt.currentTarget.x-
evt.currentTarget.width;
                                                        
evt.currentTarget.transform.matrix = skewMatrix;
                                                                }

                                                }
                ]]>
        </mx:Script>


        <mx:Canvas id="genericExamples" label="Generic"
backgroundColor="0xffffff" backgroundAlpha="1" width="100%"
height="100%" >
                <oh:ObjectHandles horizontalScrollPolicy="off"
verticalScrollPolicy="off" id="oh12" allowRotate="true"
resizeHandleImage="{resize_handle}"
                        rotateHandleImage="{rotate_handle}"  x="10" y="20"
                        width="240" height="130" minHeight="30"
minWidth="100" click="flip(event);" >
                        <mx:Image source="oscar_dresses.jpg"
width="100%" height="100%"  x="10"/>
                </oh:ObjectHandles>

        </mx:Canvas>

On Nov 12, 6:33 pm, divya <[email protected]> wrote:
> hi every one
> i am facing a problem please help if any one can do.
>
> i am resizing image ( rectangle type ) into trapezium type  ( or any
> other irregular shape). when image resized  line's become not in
> proper shape its become irregular ( antialise property become change
> so not become regular line).
> image is not vector image.
>
> Thanks and regards
> divya singh

--

You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=.


Reply via email to