image cropping and saving actionscript help.
Copy link to clipboard
Copied
I have several images that I want to save individual sections of each each image in a numerical format...
For example:
Image = 256 x 2048 (4 sections of 256x512 to be saved individually)
actionscript process I'm trying but not working..
Marque preset size set to 256x512
- Selected section 1 Marque preset size
- Crop
- Saved as example-1.tga
- undo (step backwards) to original image
- select section 2 Marque preset size
- crop
- saved as as example-2.tga
- undo (step backward) original image
- select section 3 Marque preset size
- crop
- saved as as example-3.tga
- undo (step backward) original image
- select section 4Marque preset size
- crop
- saved as as example-4.tga
- undo (step backward) original image
End result should be 4 .tga files that are 256 x 512 and saved as: Example-1.tga, Example-2.tga, Example-3.tga, Example-4.tga
which should equal 4 parts of a total image of 256x2048
For some reason recorded actionscript errors / stops at the undo option like it doesnt recognize this part..
So was wondering if anyone might be able to clarify this to what and or how it should work correctly.
Copy link to clipboard
Copied
i don't know what you're trying to accomplish, but if you're trying to crop a bitmap, animate's not the right tool. it can be done but it's a lot easier in an app (like photoshop) that's a bitmap editor.
that said, in the animate ide you can convert a bitmap to a vector and then 'crop' using the selection tool. you could then convert the 'cropped' vectors to bitmaps if that's important.
and you can 'crop' using the bitmapdata class (eg, copyPixels).
bottomline: i have no idea when steps 1 to 16 are trying to describe. if it's an attempt to use jsfl, why use jsfl?
Copy link to clipboard
Copied
SOB... just realized this is for animate. not photoshop actionscript.. I appologize for posting this in the wrong forum category. I have reposted into photoshop forum category.

