Using Gradients - MACROMEDIA DIRECTOR MX-USING DIRECTOR MX Use Manual

Table of Contents

Advertisement

To make a new image object from the alpha channel information of a 32-bit image object:
Use the
extractAlpha() command
information of a 32-bit image object that you plan to reduce to a lower bit depth. Reducing
the bit depth can delete the alpha information.
The following statement creates a new image object called
information of the 32-bit image object called
alphaImage = myImage.extractAlpha()
There are many more image-editing operations available through Lingo. See the categorized
section of the Lingo Dictionary for a complete list of these commands.

Using gradients

Director can create gradients in the Paint window. You can use gradients with the Brush tool, the
Bucket tool, the Text tool, or any of the filled shape tools. Typically, a gradient consists of a
foreground color at one side (or the center) of an image and another color, the destination color,
at the other side (or outside edge) of the image. Between the foreground and destination colors,
Director creates a blend of the two colors.
To use a gradient:
Select the Brush tool, the Bucket tool, or one of the filled shape tools.
1
Select the type of gradient from the Gradient pop-up menu.
2
Gradient pop-up menu
Selecting a gradient type automatically sets the current Paint window ink to Gradient. You can
also select Gradient ink from the Ink pop-up menu at the bottom left of the Paint window to
create a gradient with all the current settings.
To manually specify a gradient, select Gradient Setting from the pop-up menu. See "Editing
gradients" on page 225.
Select a foreground color from Gradient Colors pop-up menu on the left.
3
The foreground color is the same color that is specified for the Paint window.
Foreground color
Destination color
Select a destination color from the Gradient Colors pop-up menu on the right.
4
The destination color is the color of the gradient when it completes the color transition.
224
Chapter 7
, which can be useful for preserving the alpha channel
alphaImage
:
myImage
from the alpha channel

Advertisement

Table of Contents
loading

This manual is also suitable for:

Director mx

Table of Contents