
94 Chapter 3
•
•
•
•
However, if the object has no set background color, MediaRich does the following:
•
For objects with 256 colors or less, MediaRich uses the first color index
•
For objects with 15-bit or greater resolution (including the CMYK color-space),
MediaRich uses black
If the object has no set foreground color, MediaRich does the following:
•
For objects with 256 colors or less, MediaRich uses the last color index
•
For objects with 15-bit or greater resolution (including the CMYK color-space),
MediaRich uses white
Syntax
glow(
Blur @ <value 0..30>
[Size @ <value 1..30>]
[Halo @ <value 0..30>]
[Opacity @ <value 0..255>]
[Color @ <color in hexadecimal or rgb>]
[Index @ <value 0..16777215>]
[ResizeCanvas @ <true, false>]
[layers @ <"layer list">] // (PSD files only)
);
Parameters
Blur - adds a specified blur to the shadow that gives it a more diffused look. Note,
however, that the larger the blur value, the more processing is required.
Size - specifies how large (in pixels) the glow surrounding the image should be.
Halo - specifies the gap between the image and the start of the glow. The value for halo
must always be smaller than the size of the glow. The default value is zero.
Opacity - defines the level of transparency for the shadow. The default opacity is 255,
which is completely solid.
NOTE: The shadow affects the alpha channel of the image as well as the visible channels.
Color - defines the color of the glow, and the default is the foreground color.
Index - colorizes the glow using an index value from the available color palette for the
source image (as an alternative to the Color parameter).
NOTE: You cannot specify values for both the Color and Index parameters.
ResizeCanvas - automatically resizes the canvas of the image to encompass the shadow
produced. The image’s background color will be used for the additional area. For more
information about setting an image’s background color, see “setColor()” on page 131.
layers - for PSD files, specifies the layers to be affected. The layer numbers begin at 0
(background) and go up. For more information see “load()” on page 101.