![MACROMEDIA FLASH 8-EXTENDING FLASH Manual Download Page 171](http://html1.mh-extra.com/html/macromedia/flash-8-extending-flash/flash-8-extending-flash_manual_3348049171.webp)
Document object
171
document.traceBitmap()
Availability
Flash MX 2004.
Usage
document.traceBitmap(
threshold
,
minimumArea
,
curveFit
,
cornerThreshold
)
Parameters
threshold
An integer that controls the number of colors in your traced bitmap. Acceptable
values are integers between 0 and 500.
minimumArea
An integer that specifies the radius measured in pixels. Acceptable values are
integers between 1 and 1000.
curveFit
A string that specifies how smoothly outlines are drawn. Acceptable values are
"pixels"
,
"very tight"
,
"tight"
,
"normal"
,
"smooth"
, and
"very smooth"
.
cornerThreshold
A string that is similar to
curveFit
, but it pertains to the corners of the
bitmap image. Acceptable values are
"many corners"
,
"normal"
, and "
few corners
".
Returns
Nothing.
Description
Method; performs a trace bitmap on the current selection. This method is equivalent to
selecting Modify > Bitmap > Trace Bitmap.
Example
The following example traces the selected bitmap, using the specified parameters:
fl.getDocumentDOM().traceBitmap(0, 500, 'normal', 'normal');
document.transformSelection()
Availability
Flash MX 2004.
Usage
document.transformSelection(
a
,
b
,
c
,
d
)
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...