sand bitmap data as a byte array to the server .........save image
from that byte  array using the server code(.net or php or java)
On Jul 6, 5:04 pm, Tushar <[email protected]> wrote:
> Hi,
> I am new to flex. I am able to resize the image by using following
> code.
> "<?xml version="1.0"?>
> <!-- Simple example to demonstrate the HSlider control. -->
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
>
>     <mx:Script>
>         <![CDATA[
>
>           private var imageWidth:Number=0;
>           private var imageHeight:Number=0;
>
>           // Event handler function to change the image size.
>           private function changeSize():void
>           {
>              image.width=uint(imageWidth*hSlider.value/100);
>              image.height=uint(imageHeight*hSlider.value/100);
>           }
>         ]]>
>     </mx:Script>
>
>         <mx:Label color="blue" text="Drag the slider to resize the
> image."/>
>         <mx:HSlider id="hSlider" minimum="0" maximum="100"
> value="100"
>             dataTipPlacement="top"
>             tickColor="black"
>             snapInterval="1" tickInterval="10"
>             labels="['0%','100%']"
>             allowTrackClick="true"
>             liveDragging="true"
>             change="changeSize();"/>
>
>         <mx:HBox height="496" width="651">
>             <mx:Image id="image" source="@Embed('image/
> IMG0028A.jpg')"
>                 creationComplete="imageWidth=image.width;
> imageHeight=image.height;" />
>         </mx:HBox>
>
> </mx:Application>
>
> "
>
> I am facing a problem that, I want to write this resized image on
> server directly.
>
> Can anyone please help me out to solve this problem?
>
> Thanks,
> Tushar
--~--~---------~--~----~------------~-------~--~----~
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=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to