Description
Sets the canvas color of the document to the specified color.
Example
The following command sets the canvas color to blue.
fw.getDocumentDOM().setDocumentCanvasColor("#0000ff");
dom.setDocumentCanvasSize()
Availability
Fireworks 3.
Usage
dom.setDocumentCanvasSize(boundingRectangle)
Arguments
boundingRectangle
(see
"Rectangle data type" on page
Returns
Nothing.
Description
Sets the document's canvas size to the specified rectangle.
Example
The following command sets the canvas to a size of 200 by 200 pixels.
fw.getDocumentDOM().setDocumentCanvasSize({left:150, top:150, right:350,
bottom:350});
dom.setDocumentCanvasSizeToDocumentExtents()
Availability
Fireworks 3.
Usage
dom.setDocumentCanvasSizeToDocumentExtents(bGrowCanvas)
Arguments
If
bGrowCanvas
is
, it only shrinks.
false
Returns
Nothing.
Description
Calculates the size of all the items in the document and resizes the document canvas to that size.
This action is the same behavior as Modify > Trim Canvas.
202
Chapter 5: Fireworks JavaScript API
A rectangle that specifies the new canvas size for the document, in pixels
11). Any items outside the specified rectangle are removed.
is
, the canvas can expand or shrink in size. If
bGrowCanvas
true
bGrowCanvas
Need help?
Do you have a question about the FIREWORKS MX 2004-EXTENDING FIREWORKS and is the answer not in the manual?
Questions and answers