Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Student and Teacher Editions
More products
Solutions
Digital marketing
Digital media
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Buy
Home use for personal and home office
Education for students, educators, and staff
Business for small and medium businesses
Licensing programs for businesses, schools, and government
Special offers
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
My products and services
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out My orders My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / Fireworks Developer Center / Design Learning Guide /

Design Learning Guide for Fireworks: Scaling objects without distortion with 9-slice scaling

by Tommi West

Tommi West
  • tommiland.com

Created

26 May 2009

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
Fireworks

Requirements

User level

Beginning

Required products

  • Fireworks CS4 (Download trial)

No matter how much you plan ahead, there will be times when you need to readjust the dimensions of the elements in your Fireworks document to make them fit your design better. Happily, Fireworks CS4 makes it simple to make these kind of adjustments.

In earlier versions of Fireworks, the process of scaling bitmap and vector objects could sometimes result in unexpected or unintended changes to the integrity of the original graphic. But with the 9-slice scale tool, you have complete control over specifying which part of the object scales—so you can fit in all the pieces of your project and preserve the intended look and feel.

This section describes the normal process for scaling files and then covers how 9-slice scaling allows you to adjust the proportions of an element while maintaining the correct corner ratios, text, and graphics. I also provide step-by-step instructions outlining the process for using the 9-slice scale tool to scale both bitmap and vector objects.

Scaling files normally

When you need to resize an object, you can select the Scale tool (or press the Q key) and then drag one of the four corner handles. If you wish to constrain the proportions of the object you are scaling, press and hold the Shift key while dragging the corner handles. As I mentioned previously (in Selecting and editing bitmap images), you should never scale bitmap graphics larger than their original size; doing so will result in loss of image quality.

In earlier versions of Fireworks, if you scaled an image with the Scale tool there was a chance that the image would no longer retain its form. For example, this graphic is currently displayed at its original size (see Figure 1).

The original graphic before 9-slice scaling.
Figure 1. The original graphic before 9-slice scaling.

This is a flattened image, and rather than being narrow, it would fit the design on the page best if the width of the pod was scaled wider. After using the regular Scale tool to resize the graphic, the radius of the rounded corners have changed, and the text and graphics are distorted (see Figure 2).

The graphic is distorted after using the regular Scale tool to transform it.
Figure 2. The graphic is distorted after using the regular Scale tool to transform it.

Scaling files with the 9-slice scale tool

With 9-slice scaling, you can change the dimensions of a graphic without squashing or distorting the graphics (see Figure 3). Here's how to use the 9-slice scale tool to adjust the dimensions of an image and avoid adding distortion. While the image is selected, choose the 9-slice scale tool. It is one of the series of tools available under the normal Slice tool. This tool is so named because it refers to splitting the image into nine different portions. By setting the two horizontal and two vertical guides, you can define exactly which portion of the image will scale.

After scaling with the 9-slice scale tool, the corners and graphic proportions are preserved.
Figure 3. After scaling with the 9-slice scale tool, the corners and graphic proportions are preserved.

Setting the guides takes a bit of strategic planning. The goal is to set the guides in a way that the areas between them do not contain any pixels that will look unusual once the scale operation is applied (see Figure 4).

Drag the guides of the 9-slice scale tool to areas with continuous tone backgrounds.
Figure 4. Drag the guides of the 9-slice scale tool to areas with continuous tone backgrounds.

In Figure 4, the guides are carefully placed to avoid any bitmap graphics or text, and also fall on the middle edges of the image, to ensure that the rounded corners will not be affected by scaling. Only the regions in between the two sets of guides will be scaled. Since there is a solid background color, it is possible to achieve scaling without any distortion (see Figure 5).

The areas between the guides were expanded, leaving the corner ratio intact.
Figure 5. The areas between the guides were expanded, leaving the corner ratio intact.

The pixels between the "T" in Special Event and the left side of the rose were duplicated as the graphic was scaled, but it is not noticeable in the example above because there is a continuous area of solid gray.

For this reason, vector shapes (without gradients) and images containing continuous tone background areas are good candidates for 9-slice scaling.

Figure 6 shows an example of a vector shape in its original form, before scaling.

The original vector graphic before scaling is applied.
Figure 6. The original vector graphic before scaling is applied.

If the design requires that this vector shape is scaled taller, then the 9-slice scaling tool works well because the guides can be placed as in Figure 7.

Strategically place the guides to fall on areas that are not curved.
Figure 7. Strategically place the guides to fall on areas that are not curved.

The resulting scaled shape uses only straight edges when calculating the new dimensions, so none of the curved edges have been affected (see Figure 8).

The vector shape after using 9-slice scaling to transform it.
Figure 8. The vector shape after using 9-slice scaling to transform it.

When you are setting the guides for the 9-slice scaling, look for regions that contain flat edges and continuous tones.

Scaling bitmaps larger than the original image does not work well—even when you use the 9-slice scaling tool—because the pixels inside the image are not continuous. Scaling bitmaps up to a larger size results in unusual results. For example, look at the object in Figure 9.

The original bitmap image before scaling.
Figure 9. The original bitmap image before scaling.

It might seem that the scaled areas would be fairly inconspicuous if you were to set the scaling guides on the bitmap image as shown in Figure 10.

The guides of the 9-slice scaling tool are placed on the bottom and right side.
Figure 10. The guides of the 9-slice scaling tool are placed on the bottom and right side.

However, the resulting scaled image reveals that the scaled pixels in between the guide regions; the pixels that were scaled are stretched within these areas (see Figure 11).

The pixels within the guides of the 9-slice scaling tool are stretched.
Figure 11. The pixels within the guides of the 9-slice scaling tool are stretched.

For this reason, it is best to use 9-slice scaling on vector shapes, text objects, screenshots, and GIF images that contain areas with continuous tone. Solid color backgrounds can be scaled without causing distortion.

Scaling bitmaps smaller than their original size will work with the 9-slice scaling tool if you strategically place the resize guides, as in the example in Figure 12.

The guides of the 9-slice scaling tool are placed on the bitmap image.
Figure 12. The guides of the 9-slice scaling tool are placed on the bitmap image.

The scaled down version of the bitmap image looks like Figure 13.

The bitmap image does not look distorted after scaling it smaller with the 9-slice scaling tool.
Figure 13. The bitmap image does not look distorted after scaling it smaller with the 9-slice scaling tool.

Where to go from here

To learn more about 9-slice scaling, read the article Improved 9-slice scaling in Fireworks CS4 by Sarthak Singhal. Also, watch the video Scale objects with 9-slice scaling by Jim Babbage.

Finally, explore other areas of the Design Learning Guide for Fireworks CS4.

Products

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile Apps
  • Photoshop
  • Touch Apps
  • Student and Teacher Editions

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • For personal and home office
  • For students, educators, and staff
  • For small and medium businesses
  • For businesses, schools, and government
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy Policy and Cookies (Updated)

Ad Choices

Reviewed by TRUSTe: site privacy statement