Macromedia fireworks mx 2004-extending fireworks 用户手册

下载
页码 296
Document functions
111
Description
Adds a new Hotspot that fits into the specified bounding rectangle.
Example
The following command adds a new rectangle slice with the specified coordinates.
fw.getDocumentDOM().addNewHotspot("slice","rectangle",{left:0, top:0, 
right:50, bottom:100});
dom.addNewImage()
Availability
Fireworks 3.
Usage
dom.AddNewImage(boundRectanglebEnterPaintMode)
Arguments
boundingRectangle
   A rectangle that specifies the bounds of the image to be added (see 
). You cannot create an image that is larger than the document; 
therefore, if you pass in a rectangle with bounds larger than the document size, you can create an 
image that is constrained to the document size.
bEnterPaintMode 
If 
bEnterPaintMode
 is 
true
, the application immediately enters bitmap 
mode for the new image. 
Returns
Nothing.
Description
Adds a new empty (transparent) image to the document.
Example
The following command adds an empty image that is 500 by 500 pixels in size, and then enters 
bitmap mode.
fw.getDocumentDOM().addNewImage({left:0, top:0, right:500, bottom:500}, true);
dom.addNewImageViaCopy()
Availability
Fireworks MX.
Usage
dom.addNewImageViaCopy()
Arguments
None.
Returns
Nothing.