Chapter 7
224
To make a new image object from the alpha channel information of a 32-bit image object:
•
Use the
extractAlpha() command
, which can be useful for preserving the alpha channel
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
alphaImage
from the alpha channel
information of the 32-bit image object called
myImage
:
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:
1
Select the Brush tool, the Bucket tool, or one of the filled shape tools.
2
Select the type of gradient from the 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.
3
Select a foreground color from Gradient Colors pop-up menu on the left.
The foreground color is the same color that is specified for the Paint window.
4
Select a destination color from the Gradient Colors pop-up menu on the right.
The destination color is the color of the gradient when it completes the color transition.
Gradient pop-up menu
Foreground color
Destination color
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...