getPixelFormat() - Media Method
The getPixelFormat() method returns a string representing the image type: Gray-8, RGB-15, RGB-16, RGBA-16, RGB-24, RGBA-32, CMYK-32, CMYKA‑40.
Syntax
<object name>.getPixelFormat();
Parameters
This function has no parameters.
Example
var image = new Media();
image.load(name @ "peppers.psd");
if(image.getPixelFormat() == "RGB-24")
{...
On-Line Documentation