|
|||
|
Code:
function Resize(source_image,NewName,desired_width){
***var image = Image.load(source_image)
***trace("original width is " +image.width)
***Zoomfactor = desired_width/image.width
***trace("Image is scaled with factor" +Zoomfactor)
***image.zoom(Zoomfactor)
***image.save(NewName+".jpg")
}
Resize("c://test.jpg","resized_test",600)
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|