🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #202

Re: How to get the alpha channel data information?

#202
From: 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.
Technical Details
Message-ID: <59b838ef.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b838ef.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,6bbf00e44729acd0
X-Google-Attributes: gidf5839,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Michael_L_Hale@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.photoshop.scripting
Subject: Re: How to get the alpha channel data information?
Message-ID: <59b838ef.0@webcrossing.la2eafNXanI>
Date: Mon, 16 Mar 2009 12:13:28 -0700
References: <59b838ef.-1@webcrossing.la2eafNXanI>
Lines: 6
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit