Graphics
 

Adobe Flash Professional CS5 : Transforming Gradients and Bitmap Fills (part 2) - Adjusting scale with the Gradient Transform tool, Setting gradient fill overflow styles

 
11/19/2011 11:46:20 AM

3. Adjusting scale with the Gradient Transform tool

To resize a bitmap fill symmetrically (to maintain the aspect ratio), find the round corner handle with an arrow icon, which is usually located at the lower-left corner of the fill. On rollover, the diagonal arrow icon appears, indicating the direction(s) in which the handle resizes the fill. Click and drag to scale the fill symmetrically. On radial gradients, you use the round-corner handle with the longer arrow icon to scale with the gradient aspect ratio constrained. Linear gradients have only one handle for scaling, and this handle always scales in the direction of the gradient banding.

To resize a fill asymmetrically, find a small square handle on either a vertical or a horizontal edge, depending on whether you want to affect the width or height of the fill. On rollover, arrows appear perpendicular to the edge of the shape, indicating the direction in which this handle resizes the fill. Click and drag a handle to reshape the fill.

Figure 5 shows the three fill types with their respective scale options. Linear gradient fills (left) can be scaled only in the direction of the gradient banding, but they can be rotated to scale vertically (lower) rather than horizontally (upper). Radial gradient fills (center) can be expanded symmetrically (upper) with the circular handle, or asymmetrically (lower) with the square handle. As with linear gradients, they can be rotated to scale vertically rather than horizontally. Bitmap fills (right) can be scaled by the corner handle to maintain the aspect ratio (upper), or dragged from any side handle to scale asymmetrically (lower).

Adjusting bitmap fills with the Gradient Transform tool can be tricky business. On tiled fills, the transform handles are often so small and bunched together that they are difficult to see. On full-size bitmaps, the handles are sometimes outside the Stage, and it can be hard to find the handle that you need. It can also be unpredictable where the handles appear when you select a bitmap fill with the Gradient Transform tool — often they are outside the shape where the fill is visible. Our advice is to use this workflow only when you have no other choice. In general, it is a much better idea to decide on the size for a bitmap and create a Web-ready image that you can use without scaling before you import it to Flash.


NOTE

The right column of Figure 5 is a good example of how changes applied to one tile in a bitmap fill are passed to all the other tiles within the shape.

4. Setting gradient fill overflow styles

As you work with scaled gradient fills, you will quickly notice that your shape is always filled from edge to edge but that the fill area may not appear quite how you'd like it to. In early versions of Flash, you were stuck with the solid color fill around the edges when a gradient was scaled smaller inside of a shape. This default behavior is now part of the Overflow menu in the Color panel that gives you some other options for how a gradient renders when it is scaled down. As shown in Figure 6, there are three different overflow styles:

  • Extend: Extends the colors on the outside edge of the gradient to create a solid fill beyond the edge of the rendered gradient

  • Reflect: Alternates flipped (reflected) versions of the original gradient until the shape is filled from edge to edge

  • Repeat: Renders the color pattern of the original gradient repeatedly until the shape is filled from edge to edge

Figure 5. Scaling fills symmetrically (top) and asymmetrically (bottom)

Figure 6. Different overflow styles applied to a linear gradient (top right) and a radial gradient (bottom right) using the Overflow menu in the Color panel (left). Overflow styles applied to the fills from left to right: Extend, Reflect, Repeat

5. Skewing a bitmap fill with the Gradient Transform tool

To skew a bitmap fill horizontally, click the diamond-shaped handle at the top of the image; arrows appear, parallel to the edge of the fill, indicating the directions in which this handle skews the fill. Drag to skew the image in either direction. Figure 7 shows a bitmap skewed horizontally (left) and vertically (right). Note that the skew procedure is still active after it has been applied, meaning that the skew may be further modified — this behavior is common to all functions of the Gradient Transform tool.

Figure 7. Skewing a bitmap fill with the Gradient Transform tool

NOTE

Gradient fills cannot be skewed; they can be scaled only on the horizontal or vertical axis.

If you get carried away with the Gradient Transform tool and you want to get back to the original fill position and size, double-click the center icon of the shape to reset all transformations.

 
Others
 
- Adobe Flash Professional CS5 : Transforming Gradients and Bitmap Fills (part 1) - Adjusting the center point with the Gradient Transform tool, Rotating a fill with the Gradient Transform tool
- Adobe InDesign CS5 : Joining Anchor Points & Using the Smooth Tool
- Adobe InDesign CS5 : Splitting Paths
- Adobe Flash Catalyst CS5 : Using design-time data (part 2) - Add and remove elements in the repeated item
- Adobe Flash Catalyst CS5 : Using design-time data (part 1) - Replace design-time images & Edit design-time text
- Adobe Flash Catalyst CS5 : Setting data list properties
- Adobe Illustrator CS5 : Learning the Truth About Transparency (part 2)
- Adobe Illustrator CS5 : Learning the Truth About Transparency (part 1) - Understanding Transparency Flattening
- Dreamweaver CS5 : Using Dreamweaver Templates - Adding Content to Template Documents
- Dreamweaver CS5 : Using Dreamweaver Templates - Using Editable Regions
- Adobe Photoshop CS5 : Fixing Depth-of-Field Problems
- Adobe Photoshop CS5 : Using the Dodge and Burn Tools
- QuarkXPress 8 : Combining type and graphics
- QuarkXPress 8 : Fine-tuning typography
- Adobe After Effects CS5 : Curves: Gamma and Contrast
- Adobe After Effects CS5 : Levels: Histograms and Channels
- Adobe Fireworks CS5 : Adjusting tonal range & Using the Align panel
- Adobe Fireworks CS5 : Importing images & Distortion-free bitmap scaling
- CorelDraw 10 : Naming a Web Page
- CorelDraw 10 : Adding a Page Background
 
 
Most View
 
- Windows Phone 7 : AppHub and the Windows Marketplace for Mobile (part 1)
- Java ME on Symbian OS : Handling Transitions Between Foreground and Background
- Microsoft Excel 2010 : Collaborating with Colleagues - Sharing Workbooks
- Windows Phone 8 : XAML Overview - Visual Grammar
- Microsoft Access 2010 : Customizing Fields - Indexing Field Values, Validating Data Entry
- Windows 8 : Optimizing Backup and Restore (part 2) - Using Backup and Restore
- Windows 7 : Running Programs and Gadgets - Annotating a Document, Enlarging the Screen Content
- Adobe Photoshop CS5 : Fixing Dark Eye Sockets
- Adobe InDesign CS5 : Creating a Compound Path
- Adobe Dreamweaver CS5 : Creating and Applying Styles (part 5) - Debugging your applied CSS
 
 
Top 10
 
- Microsoft Access 2010 : Introduction to Relational Database Design (part 2) - Normalization and Normal Forms
- Microsoft Access 2010 : Introduction to Relational Database Design (part 1) - Rules of Relational Database Design
- Windows Phone 8 : Scheduled Notifications (part 3) - Reminder Registration, Reminder Sample
- Windows Phone 8 : Scheduled Notifications (part 2) - Alarm Registration, Alarm Sample
- Windows Phone 8 : Scheduled Notifications (part 1)
- Windows 8 : Customizing the Start Screen (part 5) - Adding Shutdown and Restart Tiles to the Start Screen, Customizing the Start Screen Background
- Windows 8 : Customizing the Start Screen (part 4) - Pinning a Website to the Start Screen,Displaying the Administrative Tools on the Start Screen
- Windows 8 : Customizing the Start Screen (part 3) - Turning Off a Live Tile, Pinning a Program to the Start Screen
- Windows 8 : Customizing the Start Screen (part 2) - Creating an App Group
- Windows 8 : Customizing the Start Screen (part 1) - Resizing a Tile, Moving a Tile