Adobe 65011817 Extended User Guide - Page 86
dom.fillSelectedPixels, dom.filterSelection
UPC - 883919157368
View all Adobe 65011817 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 86 highlights
Last updated 12/8/2009 EXTENDING FIREWORKS 82 The Document object 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 8). p1, p2, and p3 Points that specify the fill-vector. These arguments are ignored if the current fill does not use a fillvector. 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 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); dom.filterSelection() Availability Fireworks 3. usage dom.filterSelection(LiveEffect) Arguments LiveEffect An Effect object (see "Effect object" on page 241).