MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 272

Director scripting reference
Table of Contents

Advertisement

To see an example of quad used in a completed movie, see the Quad movie in the Learning/Lingo
folder inside the Director application folder.
Parameters
Required. A reference to the source image object from which pixels are copied.
sourceImgObj
destRectOrQuad
quad. The rectangle or quad into which pixels are copied.
Required. The source rectangle from which pixels are copied.
sourceRect
Optional. A parameter list that can be used to manipulate the copied pixels before
paramList
they are placed into
following parameters.
Property
Use and Effect
The foreground color to apply for colorization effects. The default color is black.
#color
The background color to apply for colorization effects or background transparency.
#bgColor
The default color is white.
The type of ink to apply to the copied pixels. This can be an ink symbol or the
#ink
corresponding numeric ink value. The default ink is
The degree of blend (transparency) to apply to the copied pixels. The range of
#blendLevel
values is from 0 to 255. The default value is 255 (opaque). Using a value less than
255 forces the
#backgroundTransparent
use a value range of 0 to 100.
#dither
A
when placed into the
which maps the copied pixels directly into the
A
#useFastQuads
faster but less precise method available in Director when copying pixels into
destQuad
FALSE
default value is
Specifies a mask or matte object, created with the
#maskImage
that will be used as a mask for the pixels being copied. This enables the effects of
mask and matte sprite inks to be duplicated. If the source image has an alpha
channel and its
specified mask or matte is ignored. The default is no mask.
#maskOffset
A point indicating the amount of x and y offset to apply to the mask specified by
#maskImage
default offset is (0, 0).
Example
This statement copies the entire image of member Happy into the rectangle of member flower. If
the members are different sizes, the image of member Happy will be resized to fit the rectangle of
member flower.
272
Chapter 12: Methods
Required if copying pixels into a screen coordinate rectangle or a floating point
or
destRect
destQuad
setting to be
#ink
or
value that determines whether the copied pixels will be dithered
TRUE
FALSE
destRect
or
value that determines whether quad calculations are made using the
TRUE
FALSE
. Set to
to use quads for simple rotation and skew operations. Set to
TRUE
for arbitrary quads, such as those used for perspective transformations. The
.
FALSE
useAlpha
. The offset is relative to the upper left corner of the source image. The
. The property list may contain any or all of the
, or
#blend
#blendTransparent
. #blendLevel could also be replaced with
in 8- and 16-bit images. The default value is
imageObjRef
property is
, the alpha channel is used and the
TRUE
.
#copy
if it was originally
#blend
's color palette.
or
creatMask()
createMatte()
; if so, use
,
FALSE
s,

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents