Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

image cropping and saving actionscript help.

Community Beginner ,
Jul 26, 2019 Jul 26, 2019

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

  1. Selected section 1 Marque preset size
  2. Crop
  3. Saved as example-1.tga
  4. undo (step backwards) to original image
  5. select section 2 Marque preset size
  6. crop
  7. saved as as example-2.tga
  8. undo (step backward) original image
  9. select section 3 Marque preset size
  10. crop
  11. saved as as example-3.tga
  12. undo (step backward) original image
  13. select section 4Marque preset size
  14. crop
  15. saved as as example-4.tga
  16. 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.

TOPICS
ActionScript
210
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 26, 2019 Jul 26, 2019

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 27, 2019 Jul 27, 2019
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines