Image

Vectors vs. Bitmaps

Computers store picture information in two different ways – using vector or bitmap file formats.

A Vector at Maximum Magnification

A Similar Shape at Maximum Magnification in Bitmap Format

When a bitmap file type is used, the computer divides the picture into a grid. You can see the squares on the grid if you zoom in very close to a bitmap image. These squares are known as pixels.

Bitmaps are good file types to use when you are working with very complex textures or photographs. However, the file sizes can be large and if your image is scanned or created with a low resolution to keep the file size down, you may get a pixilated image in which you can see the square outlines of your pixels.

Vector images, on the other hand, have very small file sizes. The computer uses geometry and mathematics to store the picture information.

Vector files are resolution independent. If you zoom in close to them, the outlines will remain crisp and perfect. They are good to use for graphics with blocks of color and gradients, but not so useful for complex textures.

Work produced in vector programs like Flash tend to have a particular ‘look’ about them. Get some texture into those clean looking vectors with the careful use of bitmaps.

Still Image File Types You can Import

Although Flash is a fantastic program to use for drawing, you may wish to bring in photographs or other types of images that you have created in software outside Flash. There are many options available to you.

There now follows a list of the main still image file formats that you can import into Flash and some information about them. Check out the Flash Help menu if you are interested in importing more specialized file types.

(i) Bitmap File Formats

Name Details PC file extension
Bitmap Although this term denotes a type of file format (e.g. bitmap as opposed to vector), there is also a file format called bitmap or BMP. Although it is a standard PC file imaging file format, it can be imported to a Mac using QuickTime. .bmp
EPS Encapsulated PostScript language file format is supported by virtually all graphic, illustration, and page-layout programs. It is the most common format for use in desktop publishing. Any version can be imported. .eps
GIF and animated gif Graphics Interchange Format – commonly used on the web. It produces very small files by reducing the number of colors in your image to a maximum of 256. Consequently, this format is best used for graphics or cartoony type images with areas of flat color. Transparency can be attributed to colors. .gif
JPEG Joint Photographic Experts Group is commonly used for photographic images. It is a good format for reducing file size while keeping the quality high and commonly used on the web. This format is recommended to bring photographs into Flash, but cannot contain alpha channels. .jpg
Photoshop The default file format for newly created images in Photoshop, which can be imported into Flash if the computer has QuickTime 4 or above loaded. This file format supports all available image modes, guides, alpha channels, spot channels, and layers. .psd
PDF Version 1.4 or above can be imported. .pdf
PICT A Mac graphical image file format, which can be imported into Flash on a PC if the computer has QuickTime 4 or above loaded. .pct
PNG Portable Network Graphics, a more recent file format used on the web. Can compress to small file sizes while maintaining high quality of image. It supports multiple color depth and grayscales and can contain alpha channel transparency. PNG is also the standard file format for newly created images in Fireworks. See below for more information. .png
TGA Targa files can support alpha channel transparency and can be imported into Flash if the computer has QuickTime 4 or above loaded. They are a good choice for exporting in a sequence for output to video. .tga
TIFF The Tagged-Image File Format is usually used for print as it can contain high-resolution data, be in RGB or CMYK or grayscale and can support alpha channel transparency. It can be imported into Flash if the computer has QuickTime 4 or above loaded. .tif

(ii) Vector File Formats

Name Details PC file extension
Adobe Illustrator files These files are the standard file format for newly created images in Illustrator and can contain layers and guides. Flash can import files from Illustrator version 6 or later. On import, you can choose to flatten all the layers or convert the layers into layers or keyframes in Flash. .ai
Flash Player The default file format that is exported from Flash to use on the web. You can also import these files into Flash. .swf
Freehand Files from Freehand version 7 up until 11 can be imported into Flash. Flash supports any layers you may have used in these files. If your Freehand file is in CMYK, Flash will convert it to RGB. As with Illustrator, you can choose to flatten all the layers or convert the layers into layers or keyframes in Flash. .fh7, .fh8, .fh9, .fh10, .fh11
PNG This file format is also the generic format used by Fireworks. If you choose to import a Fireworks PNG as a flattened image, it will be rasterized or converted into a single bitmap image. If you import as an editable object, you will maintain the vector artwork. .png

To Import a Still Image into Flash

  1    Make sure the layer you want the image to be on is active.

  2    Select File > Import to Stage.

  3    You can also import numbered sequences of still images. If you do this, the stills will be brought in as successive frames of the layer that is active.

  4    Your image file can be accessed in the Library. If you go to the Library Options menu and choose Edit, this command launches Fireworks or another image editing software package if you don't have Fireworks on your machine. There is more about libraries in the next chapter.

Importing Images with Areas of Transparency

If you define an area of transparency using your image editing software, you maintain this when you import the file into Flash. Here's how to do this using Photoshop:

  1    In Photoshop, open up the file that you want to create transparency in.

  2    Go to Image > Image Size and make a note of the pixel dimensions.

  3    Choose File > New to start a new file and make sure you have selected Background > Transparent and Mode > RGB.

  4    The Resolution will always be 72 pixels/inch for screen based work like that for output to video or the Internet, as this is the resolution of the screen itself.

Image Size Dialogue Box

File > New

  5    Make this new file exactly the same size as the image that you first imported.

  6    Using the Move tool (shortcut – V), drag and drop the image onto the new blank file you created. If you hold down the SHIFT key while you drag and drop, the image will be placed in the center of the new file.

  7    Close the original file.

Delete the Unwanted Parts of the Image

  8    Using any combination of selection tools, select the area you want to be transparent and then delete it.

  9    File > Save and choose PNG as your file format, then Interlace > None.

 10   Import into Flash as above and your image should have a hole in it!

The Image Without its Background in Flash

Tracing Bitmaps

If you want to reduce the file size of a bitmap image that you have brought into Flash, you can convert it into a vector graphic.

Another reason for doing this would be to change a photograph into a more stylized vector image.

  1    Import the bitmap image file that you want to convert in Flash.

  2    Make sure it's selected and then choose Modify > Bitmap > Trace Bitmap.

  3    The options that are available are as follows:

  • Color threshold = sensitivity of color selection
  • Minimum area = the number of surrounding pixels to consider as one block
  • Curve fit = how smoothly the outlines will be drawn
  • Corner fit = how sharply the edges will be retained.

  4    The following settings will give you the best possible settings, however this might take some time to process depending on the capabilities of your computer.

  5    Experiment with different settings until you achieve the style that you want. Lower quality settings will take much less time to process.

The Best Quality Trace Bitmap Settings

An Original Image and two Traced versions with different settings. The middle version has best quality settings applied as above. The one on the right Color Threshold = 100, Minimum Area = 10, Curve Fit = Smooth, Corner Fit = Normal

  6    When you have first completed this process, all the bits of traced bitmap will be selected and it will appear to be grayed out.

  7    Click away from the image onto a blank part of the Stage to deselect it.

  8    You will now be able to adjust individual parts of the image just as if you had created the image in Flash with the Paint tool.

Painting with Bitmaps

It is possible to import textures and paint with them in Flash. This can be especially effective when used with small tileable textures like snakeskin or bricks.

  1    Import the bitmap you want to use, make sure it is selected and Modify > Break apart.

  2    Select the Eyedropper Tool and click on the broken apart bitmap.

  3    This loads the image into memory and you can now paint with it using the Paint tool. It will also fill any shape that you create with the Pen tool or the Oval or Rectangle tools.

  4    The Fill Transform tool can be used to alter the scale, rotation and skew of the tiled image.

  5    Finally, you can also select Bitmap as a Fill option in the Color Mixer panel. The bitmap will be tiled to fit the image and you can adjust it as above.

An Imported PNG File

Painting with the PNG Snowflake

Finally, copyright issues don't just apply to music, but also to images. It may be tempting to use other people's images that you have found in books, magazines or on the web, but this is someone else's intellectual property. Ultimately, it is much more rewarding to be original and create your own.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset