🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.photoshop.scripting
2 messages
2 total messages Started by Prabudass Mon, 16 Mar 2009 14:29
How to get the alpha channel data information?
#201
Author: Prabudass
Date: Mon, 16 Mar 2009 14:29
1 lines
763 bytes
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.
Re: How to get the alpha channel data information?
#202
Author: Michael_L_Hale
Date: Mon, 16 Mar 2009 19:13
3 lines
880 bytes
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads