Click here to ask Question NowIts free No registration required. Flash, Flex, Flash
Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Title:
How to crop image in flex
im newbie to flex4...
i have an image of 800*600 dimension but i v to crop it into 100*100...
how can i do tat??
please can anyone help me?
load the image in flex then capture the area required to be cropped using the bitmap class and then you can send the bitmap data to server side to save as image . you can save the bitmap as jpg, png etc using the flex inbuild classes.
see my answer in this thread , It shows how to capture the bitmap and send to server to save. In flex web application you cannot save directly, in AIR apoplication you can.
hi im newbie to flex..
im using itemrenderer in a list to use a Hbox..
n Hbox contains a image,label and button,...i v to change a particular row of a list...
To be more precise,i v to change the image of particular row of a list dynamically.
how ca i change dynamically the source of that image?
please anyone help me..
yeah I am telling you that only, you need to update the particular item in your dataprovider whether its array or array collection. Say you want to update the 3rd image then update the path of 3rd item in collection and may also call refresh function if i does not automatically refresh.
myList.refresh()
You cannot directly change list , changing dataprovider will automatically re-render and update it
thanks a lot...i understood what i'm supposed to do but still i'm struck with updating particular item of an item renderer can u give some example please?
you can use MydataProvider.getItemAt(index:int) to get a particular object and update with new image path then set it using
MydataProvider.setItemAt(item:Object, index:int)
you an also use removeItemAt(index) and addItemAt(index) to change data in ArrayCollection
Hi im new to flex..
i need to save an image in a specific location using filereference class but i dont want to show the dialog box when i use save method.. how can i do it? please can anyone help me..??
@panindra you cannot do that in flex browser based application due to security reasons. You can do this in Adobe AIR application. check this article for that :
http://askmeflash.com/tutorial/6/save-file-in-adobe-air-without-dialog-window