ADOBE DIRECTOR 11.0
User Guide
117
Set a bitmap’s registration point with Lingo or JavaScript syntax
•
Set the
regPoint
cast member property. Set the
centerRegPoint
property to specify whether Director
automatically centers the registration point if the bitmap is edited. For example, you can set the regPoint cast member
property using the following:
Lingo:
member("bitmapMemberName").regPoint = point(10,10)
JavaScript:
member("bitmapMemberName").regPoint = point(10,10);
For more information, see the Scripting Reference topics in the Director Help Panel.
Changing size, color depth, and color palette for
bitmaps
Use Transform Bitmap to change the size, color depth, and palette of selected cast members. Any change you make
to a cast member’s color depth or palette affects the cast member itself—not only its appearance on the Stage. You
can’t undo changes to the color depth and palette. If you want to keep a cast member’s original bitmap unchanged
but temporarily apply a different palette, use the Member tab in the cast member’s Property inspector. To change the
size of only the sprite on the Stage, use the Sprite tab in the sprite’s Property inspector.
You can also remap images to new palettes with an image-editing program such as Fireworks
®
.
The Transform Bitmap dialog box displays values for the current selection. If you select more than one cast member,
a blank value indicates that cast members in the selection have different values. To maintain a cast member’s original
value, leave that value blank in the dialog box.
1
Select the bitmap cast members to change.
2
Select Modify > Transform Bitmap.
3
To change the size of the bitmap, do one of the following:
If multiple cast members are selected, you can resize all the cast members to the dimensions you enter.
•
Enter new measurements (in pixels) in the Width and Height text boxes.
•
Enter a scaling percentage in the Scale text box.
Select Maintain Proportions to keep the width and height of the selected cast member in proportion. If you
change the width, the proportional height is automatically entered in the Height text box. If you use Transform
Bitmap to change several cast members at once, be sure to deselect Maintain Proportions. If you don’t, all cast
members are resized to the values in the Width and Height text boxes.
4
To change the color depth, select an option from the Color Depth pop-up menu.
For more information about the color depth of bitmap cast members, see
Controlling color
.
5
To change the palette, select a palette from the Palette menu and select one of the following remapping options:
Remap Colors
replaces the original colors in the graphic with the most similar solid colors in the new palette.
This is the preferred option in most cases.
Dither
blends the colors in the new palette to approximate the original colors in the graphic.