Adobe 65011817 - Fireworks CS4 - Mac Extended User Manual page 86

Extending guide
Hide thumbs Also See for 65011817 - Fireworks CS4 - Mac:
Table of Contents

Advertisement

Last updated 12/8/2009
dom.fillSelectedPixels()
Availability
Fireworks 3.
Usage
dom.fillSelectedPixels(clickPt, p1, p2, p3, bFillSelectionOnly, tolerance, edgemode,
featherAmt)
Arguments
A point that specifies the x,y coordinates of the pixel to be filled or generated (see
clickPt
page 8).
p1, p2, and p3 Points that specify the fill-vector. These arguments are ignored if the current fill does not use a fill-
vector.
If
bFillSelectionOnly
current pixel selection is ignored, and a new one is generated using the values passed for
. (This behavior is the same as if the Magic Wand tool were used at the
featherAmt
An integer between 0 and 255, inclusive, that specifies the tolerance for selecting pixels.
tolerance
Acceptable values are
edgemode
An integer between 0 and 32,000, inclusive, that specifies the number of pixels to feather. This value is
featherAmt
ignored if the value of
edgemode
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);
dom.filterSelection()
Availability
Fireworks 3.
usage
dom.filterSelection(LiveEffect)
Arguments
An Effect object (see
LiveEffect
is
bFillSelectionOnly
true
,
"hard edge"
"antialias"
is not
.
"feather"
"Effect
object" on page 241).
, the remaining arguments are ignored. If it is
, and
.
"feather"
EXTENDING FIREWORKS
The Document object
"Point data
type" on
, the
false
,
tolerance
edgemode
location.)
clickPt
82
, and

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fireworks cs4

Table of Contents