User's Manual
92 Chapter 3
•
•
•
•
•
layers - for PSD files, specifies the layers to be included. The layer numbers begin at 0
(background) and go up. For more information see “load()” on page 101.
Example
var image = new Media();
image.load(name @ "peppers.psd");
if(image.getPopularColor()== rgb(255,0,0))
{...
getResHorizontal()
Returns the horizontal resolution in DPI.
Syntax
<object name>.getResHorizontal();
Parameters
This function has no parameters.
Example
if (image.getResHorizontal() == 72)
{...
getResVertical()
Returns the vertical resolution in DPI.
Syntax
<object name>.getResVertical();
Parameters
This function has no parameters.
Example
if (image.getResVertical() == 72)
{...
getSamplesPerPixel()
Returns the number of samples per pixel.
Syntax
<object name>.getSamplesPerPixel();
Parameters
This function has no parameters.
Example
if (image.getSamplesPerPixel() == 3)
{...










