Document functions
189
Description
Exports the document as specified.
dom.fillSelectedPixels()
Availability
Fireworks 3.
Usage
dom.fillSelectedPixels(
clickPt
,
p1
,
p2
,
p3
,
bFillSelectionOnly
,
tolerance
,
edgemode
,
featherAmt
)
Arguments
clickPt
A point that specifies the
x,y
coordinates of the pixel to be filled or generated (see
“Point data type” on page 12
).
p1
,
p2
, and
p3
Points that specify the fill-vector. These arguments are ignored if the current
fill does not use a fill-vector.
bFillSelectionOnly
If
bFillSelectionOnly
is
true
, the remaining arguments
are ignored. If it is
false
, the current pixel selection is ignored, and a new one is generated
using the values passed for
tolerance
,
edgemode
, and
featherAmt
.
(This behavior is the
same as if the Magic Wand tool were used at the
clickPt
location.)
tolerance
An integer between 0 and 255, inclusive, that specifies the tolerance for
selecting pixels.
edgemode
Acceptable values for
edgemode
are
"hard edge"
,
"antialias"
, and
"feather"
.
featherAmt
An integer between 0 and 32,000, inclusive, that specifies the number of pixels
to feather. This value is ignored if the value of
edgemode
is not
"feather"
.
Returns
Nothing.
Description
When the selection is an image and Fireworks is in bitmap mode, this method fills the
selected pixels with the current fill or generates a new pixel selection.
Example
The following command fills the selection with a hard edge, and the tolerance set to 32:
fw.getDocumentDOM().fillSelectedPixels({x:207, y:199}, {x:207, y:199},
{x:207, y:199}, {x:207, y:199}, false, 32, "hard edge", 0);
Содержание FIREWORKS 8-EXTENDING FIREWORKS
Страница 1: ...Extending Fireworks ...
Страница 4: ...4 Contents ...
Страница 358: ...358 Fireworks JavaScript API ...
Страница 372: ...372 Index ...