| Preface | p. ix |
| Raster Images and Web Graphics | |
| Creating Graphics with Perl | p. 3 |
| Introduction to File Formats | p. 3 |
| Color | p. 5 |
| Raster File Formats | p. 10 |
| Vector Graphic File Formats | p. 17 |
| Document File Formats | p. 21 |
| References | p. 24 |
| On-the-Fly Graphics with GD | p. 25 |
| GD Basics | p. 26 |
| Sample GD Applications | p. 27 |
| Reading and Writing Methods | p. 35 |
| Getting and Setting General Information | p. 40 |
| Color Table Manipulation Methods | p. 41 |
| Brushes, Styles, and Tiles | p. 44 |
| Copying and Transforming Images | p. 48 |
| Image Drawing and Manipulation Methods | p. 50 |
| Strings and Fonts | p. 53 |
| Polygon Methods | p. 55 |
| Graphics Scripting with Image::Magick | p. 62 |
| What Is Image Magick? | p. 62 |
| Using Image::Magick | p. 65 |
| Sample Image::Magick Applications | p. 70 |
| Reading and Writing Images | p. 79 |
| Retrieving and Setting File Information | p. 82 |
| Sizing and Transforming Images | p. 86 |
| Copying and Composing Images | p. 91 |
| Color and Transparency | p. 95 |
| Annotation and Drawing | p. 100 |
| Filters and Effects | p. 106 |
| Charts and Graphs with GD::Graph | p. 117 |
| Let's Make Some Graphs! | p. 117 |
| A Sample GD::Graph Application | p. 125 |
| GD::Graph Methods | p. 130 |
| Attributes of GD::Graph Objects | p. 134 |
| Colors and Fonts in GD::Graph | p. 142 |
| Scripting the Gimp with Perl | p. 145 |
| Getting and Installing the Gimp | p. 145 |
| Writing Gimp Plug-ins in Perl | p. 148 |
| Your First Gimp Script | p. 150 |
| Object-Oriented Versus Procedural Scripting | p. 155 |
| Adding New Features to the Gimp | p. 158 |
| Standalone Scripts | p. 171 |
| Vector Images and Animations | |
| SVG: The Scalable Vector Graphics Format | p. 175 |
| SVG Document Structure | p. 176 |
| The Basic SVG Tags | p. 180 |
| Creating SVG with Perl | p. 195 |
| A Slide-Show Presentation | p. 195 |
| SVG Animation | p. 201 |
| Creating a Bouncing Ball | p. 202 |
| SVG Scripting with JavaScript | p. 204 |
| Using Unicode Text in SVG Images | p. 208 |
| Transformation with XSLT and Perl | p. 210 |
| SWF: The Flash File Format | p. 215 |
| The History of Flash and SWF | p. 215 |
| The Format and Function of SWF Files | p. 216 |
| Anatomy of a Tag | p. 223 |
| Parsing an SWF File with Perl | p. 233 |
| Using Ming | p. 238 |
| Installation | p. 238 |
| Overview of the Perl Interface | p. 239 |
| The Astral Trespassers Game | p. 240 |
| The SWF Module | p. 246 |
| The SWF::Movie Module | p. 247 |
| The SWF::Sprite (or SWF::MovieClip) Module | p. 249 |
| The SWF::DisplayItem Module | p. 250 |
| The SWF::Shape Module | p. 254 |
| The SWF::Button Module | p. 259 |
| The SWF::Bitmap Module | p. 262 |
| The SWF::Text Module | p. 263 |
| The SWF::TextField Module | p. 265 |
| The SWF::Font Module | p. 267 |
| The SWF::Fill Module | p. 268 |
| The SWF::Gradient Module | p. 269 |
| The SWF::Morph Module | p. 269 |
| The SWF::Sound Module | p. 272 |
| The SWF::Action Module | p. 272 |
| SWF Recipes | p. 273 |
| Documents and Printing | |
| Printing with Postscript and PDF | p. 291 |
| PostScript in a Nutshell | p. 291 |
| Portable Document Format (PDF) | p. 299 |
| References | p. 314 |
| Using the PostScript Modules | p. 315 |
| Creating PostScript from a Web Interface | p. 316 |
| The PostScript::TextBlock Module | p. 320 |
| The PostScript::Document Module | p. 326 |
| The PostScript::Elements Module | p. 328 |
| Other PostScript Modules | p. 332 |
| Creating PDF Documents with Perl | p. 333 |
| Introduction to PDF::API2 | p. 333 |
| Creating Address Labels | p. 336 |
| Adding to Existing PDF Files | p. 341 |
| PDF::API2 Reference | p. 343 |
| PDF::API2::Page | p. 347 |
| PDF::API2::Content | p. 349 |
| PDF::API2::Gfx | p. 353 |
| PDF::API2::Text | p. 355 |
| PDF::API2::Outline | p. 357 |
| References | p. 360 |
| Appendixes | |
| Serving Graphics on the Web | p. 363 |
| Gimp Reference | p. 385 |
| Image::Magick File Formats | p. 413 |
| ActionScript Reference | p. 418 |
| Index | p. 437 |
| Table of Contents provided by Syndetics. All Rights Reserved. |