162
Fireworks JavaScript API
whatIfPastingIntoElementMask
An optional argument, added in Fireworks 4, that
applies only if the user is editing an element mask, and that element mask is an empty image
mask. In this case, the pasted elements replace the existing mask (because it is essentially a
mask that doesn’t mask anything). If the image mask isn’t empty, the pasted elements are
added to the existing mask, rather than replacing it. Acceptable values for
whatIfPastingIntoElementMask
are
"image", "vector",
and
"ask user"
. If
whatIfPastingIntoElementMask
is omitted or
null
,
"ask user"
is assumed.
Returns
Nothing.
Description
Pastes the Clipboard contents into the document.
Example
The following command pastes the Clipboard contents into the document. If there is a need
for resampling, Fireworks asks the user to decide how to resample.
fw.getDocumentDOM().clipPaste();
dom.clipPasteAsMask()
Availability
Fireworks 4.
Usage
dom.clipPasteAsMask(
whatIfResolutionDifferent
,
masktype
,
maskReplaceOptions
)
Arguments
whatIfResolutionDifferent
A 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.
masktype
Specifies how to paste the mask. Acceptable values are "
image
" (always paste as
an image mask), "
vector
" (always paste as a vector mask), and "
ask
" (displays a dialog box to
let the user decide). If the Clipboard contains a single image, it is pasted as an image mask,
even if you pass "
vector
".
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 ...