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
on page
128).
Usage
dom.clipPasteInside({whatIfResolutionDifferent})
Arguments
whatIfResolutionDifferent
if the resolution of the Clipboard contents doesn't match the resolution of the document.
Acceptable values for
(displays a dialog box to let the user decide). If
"ask user"
omitted or
null
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");
130
Chapter 5: Fireworks JavaScript API
An optional string that specifies how resampling should be done
whatIfResolutionDifferent
,
is assumed.
"ask user"
dom.clipPasteAsMask()
are
"resample"
whatIfResolutionDifferent
(see
"dom.clipPasteAsMask()"
,
"do not resample"
, and
is
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