164
Fireworks JavaScript API
dom.clipPasteFromChannelToChannel()
Availability
Fireworks MX.
Usage
dom.clipPasteFromChannelToChannel(
fromChannel
,
toChannel
)
Arguments
fromChannel
If the current selection is not a single bitmap, a new opaque bitmap is created
and the
fromChannel
is pasted in to all three color channels of the new bitmap, resulting in a
grayscale image. This first argument is ignored if the current selection is not a single bitmap.
toChannel
If the currently selected element is a bitmap, the
toChannel
argument is used to
specify where to paste the color data.
Returns
Nothing.
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 162
).
Usage
dom.clipPasteInside({
whatIfResolutionDifferent
})
Summary of Contents for FIREWORKS 8-EXTENDING FIREWORKS
Page 1: ...Extending Fireworks ...
Page 4: ...4 Contents ...
Page 358: ...358 Fireworks JavaScript API ...
Page 372: ...372 Index ...