192
Chapter 5: Fireworks JavaScript API
Arguments
where
A point that specifies the
x,y
coordinates of the pixel whose color is used to calculate the
new mask (see
“Point data type” on page 11
).
tolerance
An integer between 0 and 255, inclusive, that specifies the tolerance for
selecting pixels.
edgemode
Acceptable values are
"hard edge"
,
"antialias"
, and
"feather"
.
featherAmt
An integer that specifies the number of pixels to feather. This value is ignored if
edgemode
is not
"feather"
.
combinemode
Specifies how to combine the new selection mask with the existing mask.
Acceptable values are
"replace"
,
"add"
,
"subtract"
, and
"intersect"
.
Returns
Nothing.
Description
Behavior is almost identical to
dom.selectSimilar()
, except that the new mask is calculated
from the color at the specified location in the image, rather than from the average color in
the selection.
See also
dom.selectSimilar()
dom.sendEmail()
Availability
Fireworks MX 2004.
Usage
dom.sendEmail(
fileAttachment
)
Arguments
fileAttachment
A string, which is expressed as
file://URL
, denoting the location of a file to
send by e-mail.
Returns
Nothing.
Description
Creates a new e-mail with the specified file as an attachment.
Example
The following example opens a new e-mail in the default e-mail program and attaches the file
foo.png to the message:
fw.getDocumentDOM().sendEmail("file:///Users/andy/Documents/foo.png");
Содержание DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER
Страница 1: ...Extending Fireworks...
Страница 4: ...4 Contents...
Страница 8: ...8 Chapter 1 Extending Fireworks Overview...
Страница 102: ...102 Chapter 4 Auto Shapes...
Страница 284: ...284 Chapter 5 Fireworks JavaScript API...