A SERVICE OF

logo

MediaScript Objects and Methods 93
getWidth()
Returns the horizontal size in pixels.
Syntax
<object name>.getWidth();
Parameters
This function has no parameters.
Example
if (image.getWidth() == 480)
{...
getXmlInfo()
Returns an xml document contain the installed file formats. This document looks like
following:
<fileformats>
<fileformat>
<name>format name</name>
<version>format version</version>
<extensions>comma separated list of
extensions</extensions>\n";
<modes>read,write</modes>
</fileformat>
...
</fileformats>
Syntax
xmlString = media.getXmlInfo();
Parameters
This function has no parameters.
glow()
Produces a glow or halo around the image. It is similar to the dropShadow() method and
is based on the alpha channel of the image. Its effects are best seen when compositing the
results onto another image.
NOTE: Occasional unexpected results can often be corrected with the fixAlpha() command. See
fixAlpha() for more details.
The foreground and background colors may vary with this function, depending on the
original Media object. If the object has foreground and background colors, or such colors
are set with the setColor() function, MediaRich uses the set colors including the CMYK
color-space.