130
Chapter 5: Fireworks JavaScript API
Description
Pastes the specified color channel on the Clipboard into each of the RGB channels of a new image
or into the specified channel of the selected image, if any.
Example
The following command copies the red data from the Clipboard into the red channel:
fw.getDocumentDOM().clipPasteFromChannelToChannel("red", "red");
The following command copies the green data from the clipboard into the alpha channel:
fw.getDocumentDOM().clipPasteFromChannelToChannel("green", "alpha");
dom.clipPasteInside()
Availability
Fireworks 3, deprecated in 4 in favor of
dom.clipPasteAsMask()
(see
“dom.clipPasteAsMask()”
on page 128
).
Usage
dom.clipPasteInside({
whatIfResolutionDifferent
})
Arguments
whatIfResolutionDifferent
An optional string that specifies how resampling should be done
if the resolution of the Clipboard contents doesn’t match the resolution of the document.
Acceptable values for
whatIfResolutionDifferent
are
"resample"
,
"do not resample"
, and
"ask user"
(displays a dialog box to let the user decide). If
whatIfResolutionDifferent
is
omitted or
null
,
"ask user"
is assumed.
Returns
Nothing.
Description
Pastes the Clipboard contents into the selection, and makes the selected element into the element
mask for the pasted element(s). If the selected element already has a mask, this function groups
the pasted elements with the selected element and applies the existing element mask to the group.
Example
The following command pastes the Clipboard contents inside the selected items. If the resolution
of the Clipboard doesn’t match the resolution of the document, Fireworks resamples the
Clipboard contents to match the document.
fw.getDocumentDOM().clipPasteInside("resample");
Summary of Contents for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER
Page 1: ...Extending Fireworks...
Page 4: ...4 Contents...
Page 8: ...8 Chapter 1 Extending Fireworks Overview...
Page 102: ...102 Chapter 4 Auto Shapes...