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

How to get the alpha channel data information?

Community Beginner ,
Mar 16, 2009 Mar 16, 2009
How to get the alpha channel data information. Sometimes alpha channel also contains data(information). So i need to know wheather the alpha channel contains data or not through scripting. Could you please advice me.
TOPICS
Actions and scripting
561
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
Adobe
Guru ,
Mar 16, 2009 Mar 16, 2009
LATEST
All channels contain data. You can tell if an alpha channel is black, white, or greyscale by the histogram.

For example if activeDocument.channels.getByName('myAlpha').histogram[0] == the number of pixels in the doc the alpha is all black. use histogram[255] to test for white.
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