User Guide

Document functions 141
Arguments
boundingRectangle A rectangle that specifies the bounds of the image to be added (see
“Rectangle data type” on page 12). 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.
Description
Adds a new image to the document containing the contents of the current paint-mode
selection. The new image is placed directly above the active bitmap. You must have a current
pixel selection for this to succeed. The new bitmap appears with Fireworks in paint mode.