Buy this Book
Print Book $39.95 Print Book £28.50
Add to UK Cart
Perl Graphics Programming
Perl Graphics Programming Creating SVG, SWF (Flash), JPEG and PNG files with Perl

By Shawn Wallace
Price: $39.95 USD
£28.50 GBP

Cover | Table of Contents | Index | Sample Chapter | Colophon


Index


[ Symbols ], 
[ Numbers ], 
[ A ], 
[ B ], 
[ C ], 
[ D ], 
[ E ], 
[ F ], 
[ G ], 
[ H ], 
[ I ], 
[ J ], 
[ K ], 
[ L ], 
[ M ], 
[ N ], 
[ O ], 
[ P ], 
[ Q ], 
[ R ], 
[ S ], 
[ T ], 
[ U ], 
[ V ], 
[ W ], 
[ X ], 
[ Z ]

Symbols[ Top ]
< > (angle brackets)
      << and >>, enclosing PDF object definitions, 302
      <!-- and -->, in SVG comments, 177
      in XML tags, 177
@ (at sign), first character in primitive string for Draw( ) (Image::Magick), 105
. (dot)
      . (dot) operator, accessing object methods or properties, 420
      .= (string assignment) operator, 164
% (percent sign), %% and %! in PostScript comments, 297

Numbers[ Top ]
8-bit indexed images
      creating, 36
      creating from PNG files, 37
16-bit grayscale images, 37
24-bit color images
      converting to 8-bit color images, 44
      creating, 36
48-bit truecolor images, PNG file format and, 37
216-color web-safe palette, converting image colormap to, 98

A[ Top ]
<a> tag, SVG, 193
AA-Lib ASCII art library, 381
abort( ), 370
absolute coordinate space in SVG, 185
ActionScript, 215, 418-436
      actions, 421
      control structures, 420
      DoAction tags (SWF), 219
      event loops in Astral Trespassers game, 243
            movement of gun, aliens, and bullet, controlling, 244
      functions, 423
      objects, 425-436
            Array object methods, 425
            Boolean object methods, 426
            Color object methods, 426
            Date object methods, 427
            Key code constants, 428
            Key object methods, 428
            Math object methods, 429
            Mouse object methods, 430
            MovieClip object methods, 430
            MovieClip object properties, 431
            Number object properties, 432
            Object methods, 432
            Selection object methods, 432
            Sound object methods, 433
            String object methods, 433
            XML object methods, 434
            XML object properties, 435
            XMLSocket object properties, 435
      operators, 418-420
      properties, 424
      Sprites, operating on, 250
      SWF::Action module, 240, 272
      XMLSocket object, 285
ActiveState Win32, GD in standard Perl distribution, 26
Adam7 (PNG) interlacing, 13
add( )
      SWF::Movie module, 247
      SWF::Sprite module, 249
addAction( ) (SWF::Movie), 247
addArc( ) (PostScript::Elements), 330
addBox( ) (PostScript::Elements), 331
addEntry( ) (SWF::Gradient), 269
addEPS( ) (PostScript::Elements), 331
addFill( ) (SWF::Shape), 256
addFooter( ) (PostScript::Document), 328
addHeader( ) (PostScript::Document), 327
additive color spaces, 5
      RGB (see RGB color space)
addLine( ) (PostScript::Elements), 331
AddNoise( ) (Image::Magick), 107
addPt( ) (GD::Polygon), 52, 55
address labels PDF document (example), 336-341
addShape( ) (SWF::Button), 260
addString( )
      SWF::Text module, 263
      SWF::TextField module, 265
addText( )
      PostScript::Document module, 327
      PostScript::TextBlock module, 322-324
adjoin attribute, GIF animation files, 75
Adobe
      PostScript Document Structuring Conventions, 299
      SVG viewer, 177
      (see also PostScript)
airbrush tool (Gimp), 394
Aladdin Systems version of Ghostscript, 292
aliases
      for fonts, 67
      for Get( ) and Set( ), 65
      openPolygon( ) (for polygon( )), 52
align( ) (SWF::TextField), 265
ALIGN tags (HTML), 377
alpha blending in SVG, 179
alpha channels, 9, 153
      adjusting, script for, 167-170
      changing to specified matte value, 98
      PDF image masks, use in, 344
alpha mask (see alpha channels)
ALT tag (HTML), 379
anchor points for SWF curved edges, 232
Animate( ), 65
      Image::Magick, 81
animate program (ImageMagick), 63
<animate> tag, 203
<animateMotion> tag, 202
animations
      Astral Trespassers game , 240-246
      Flash, with SWF format, 20
      GIF files, 3, 16, 74-79
            color palette, 8
      SVG, 201-208
            bouncing ball (example), 202
            creating with JavaScript, 205
      SWF::DisplayItem, using, 251
Annotate( ) (Image::Magick), 67, 101
      special annotation characters, 101
Annotation object, PDF, 360
Apache
      Batik viewer for SVG documents, 177
      web server, 363
            modules, writing directly in Perl, 368
Append( ) (Image::Magick), 91
APPLET tag, 383
Application Extension block for GIF animation, 77
Apply Tint plug-in (Gimp), 159-162
<apply-templates> element (XSLT), 212, 213
arc( ), 29
      PDF::API2::Gfx module, 353
arc function, PostScript, 295
arcs
      drawing to create a circle, 274
      drawing with PostScript::Elements module, 328
arithmetic operators
      ActionScript, 418
      overloaded by PDL, 163
arrays
      Array object methods, ActionScript, 425
      dereferenced, 197
      direction array (Astral Trespasser game), 243
      fill style, in SWF tags, 227
      line style, in SWF tags, 228
artbox( ) (PDF::API2::Page), 348
ASCII art, 379
      Gimp AA save file plug-in, 381-383
assignment operators
      ActionScript, 419
      string assignment (.=) operator, 164
Astral Trespassers game, 240-246
      SWF document, steps in creating, 240
attributes
      <animateMotion> XML tag, 202
      DisplayItem objects, 250
      image size and resolution information in Image::Magick, 86
      for information on image files, 82-85
      SVG shape elements, 188
      XML, case-sensitivity in, 177
autoincrement/autodecrement operators, 163
automation scripts, 149
Average( ) (Image::Magick), 107
axes (graphs)
      attributes of graphs with, 136-138
      setting fonts for labels, 134

B[ Top ]
background color
      rotated images in Image::Magick, 90
      setting for movie, 248
background images, 383
bar graphs, 127
      attributes of, 138
Barcode object, PDF, 360
Batik viewer for SVG documents, 177
Bezier curves, 103
      Bezier selection tool, 391
      defining and drawing in PDF, 308
      drawing circles with, 273-277
      drawing in PDF documents, 353
      in SWF shapes, 232
billboard image from user input, 29-33
binary large objects (BLOBs)
      converting images to/from, 81
      file formats supported by ImageMagick, 413
binary strings, converting to hex, 229
binmode( ), 32, 39
      printing movies to STDOUT, 248
biorhythm server (GD::Graph application), 125-130
      biopage.cgi script, 125
      biorhythm.cgi script, 127
bit fields (SWF), 222
bitmapped GD fonts, 53
bitmaps, 7
      defining in SWF files, 218
      incorporating into movie, 262
      SWF::Bitmap module, 239, 262
bits
      get_bits( ), 236
      NumFillBits and NumLineBits (SWF tags), 228
bitwise operators
      ActionScript, 420
      overloaded by PDL, 163
black_box( ), 33
bleedbox( ) (PDF::API2::Page), 348
blend tool (Gimp), 393
BlobToImage( ) (Image::Magick), 81
Blur( ) (Image::Magick), 107
blur attribute (Image::Magick), 89
blurring images, 161
body
      of PDF documents, 302-305
      of PDF files, 301
body section, PostScript documents, 298
Boolean object methods, ActionScript, 426
borders
      adding to Image::Magick images, 110
      Border( ) (Image::Magick), 107
      BORDER tags (HTML), 377, 379
bouncing ball SVG animation (example), 202
bounding boxes
      DesignShape3 SWF tag, 226
      PDF documents, 348
            defining for pages, 303
            setting for, 345
      PostScript documents, 297
      setting width and height for text fields, 266
      SWF DefineShape3 tag, 224
      for text, 55
bounds( ), 57
Boutell, Thomas, 25
boxes, drawing with PostScript::Elements module, 328, 331
      (see also bounding boxes)
BrokenImage module, 33, 34, 372
browsers
      caching images, 366
      HTML feature handling, inconsistency in, 363
      requesting images from servers, 364
      text-only, 379-383
      web graphics and, 369-371
brushes, 43, 44
      drawing with, 45
bucket fill tool (Gimp), 392
buffering output, XML files, 198
bullet lists
      SVG presentation, 199
      XML, transforming to SVG with XSLT, 213
burn tool (Gimp), 395
buttons
      SWF files, definition tags for, 218
      SWF::Button module, 239, 259-261
            Astral Trespasser game, use in, 243
byte-aligned types, 236
bytecode interpreters for Ming, 272
byte-order, little-endian, 221, 226

C[ Top ]
C language
      Gimp functions, calling, 155
      libgd library, 26
      Ming library (see Ming)
caching, controlling for browser, 366
callback methods (XMLSocket class), 285
can_do_ttf( ) (GD::Graph), 131
can_read( ) (IO::Select), 283
can_write( ) (IO::Select), 283
carriage returns, 364
      inserting into PDF text, 357
Cascading StyleSheets (CSS), 211
case-sensitivity in XML tags and attributes, 177
Catalog dictionary object in PDF, 302
CDATA tags, 204
centered text, 265
      drawing four lines of in SVG (example), 190
      in PDF files, 357
CGI scripts, 363-369
      biorhythm server (example), 125-130
      CGI.pm module, implementing with, 365-367
            generating HTTP headers, 366
            parsing CGI input, 365
      converting astral_trespassers.swf to, 246
      image generation (makeimage.cgi), 374
      increasing server performance for, 367-369
            image farming, 368
            installing mod_perl, 368
CGI::Carp module, 372
ChangeColor( ) function (JavaScript), 206
Channel( ) (Image::Magick), 97
channels (RGB primaries), 5
char( ), 53
character data (CDATA) tags, 204
character id (SWF tags), 224, 226
characters( ) (XML::Writer), 198
Charcoal( ) (Image::Magick), 108
charspace( ) (PDF::API2::Text), 355
charts
      data, handling with GD::Graph::Data, 120
      legends for, 133
            fonts, 133
      mixed, 120
      pie charts
            attributes of, 141
            example, 122-125
      (see also graphs)
charUp( ), 54
chat server (Perl), communicating with SWF client, 283-285
Chop( ) (Image::Magick), 88
circle( ) (PDF::API2::Gfx), 353
circles
      bouncing ball application (example), 203
      drawing, 29
      drawing in Image::Magick, 103
      drawing with SWF::Shape module, 257
      SWF files, drawing with Ming, 273-277
clients (SWF), communicating with Perl backend, 282-288
clip( ) (PDF::API2::Gfx), 353
clipping JPEG image with PDF::API2 module, Gfx object, 335
clipping layer, 220
Clone( )
      GIF animation, use in, 74
      Image::Magick, 92
clone( ) (Image), 48
clone tool (Gimp), 394
clonepage( ) (PDF::API2), 343
close( ) (PDF::API2::Gfx), 353
CLUT (Color Lookup Table), 7
CMYK color space, 6
      converting RGB to, 6
color, 5
      background
            rotated images in Image::Magick, 90
            setting for movie, 248
      brushes, using, 45
      CMYK color space, 6
      color and transparency attributes, Image::Magick, 95-97
      color depth, 7
      Color object methods (ActionScript), 426
      color tables, images with, 7
      display items in SWF, 253
      for Draw( ) in Image::Magick, 103
      enhancing contrast in Image::Magick, 112
      entries to gradient object, adding, 269
      fill color for PDF document pages, 349
      in graphs, 142-144
            colour_list( ), 143
            hex2rgb( ), 144
            importing rgb, hue, and luminance functions, 143
            predefined color names and hex values for, 142
            read_rgb( ), 144
            rgb2hex( ), 144
            sorted_colour_list( ), 144
      Image::Magick methods for
            Gamma( ), 97
            Map( ), 98
            Profile( ), 98
            Quantize( ), 98
            QueryColor( ), 99
            Segment( ), 99
      line styles, using, 45
      local and global palettes for GIF animations, 78
      negating intensities of color channels in Image::Magick, 112
      PDF::API2::Color module, 360
      raster file formats, 10
      RGB color space, 5
      setting for text, 264
      smudging, 395
      stroke color in PDF, 352
      text fields, setting for, 266
      text in graphs, 133
      transparency and alpha, 9
      transparent, 44
color indexes, converting with rgb( ), 43
Color Lookup Table (CLUT), 7
color picker tool (Gimp), 392
color profiles, 95
      attaching to image file in Image::Magick, 98
color reduction, 8
color spaces, 5
color tables, manipulation methods, 41-44
colorAllocate( ), 27, 31, 42
colorClosest( ), 42
colorClosestHWB( ), 42
colorDeallocate( ), 42
colorExact( ), 43
ColorFloodfill( ) (Image::Magick), 102
Colorize( ) (Image::Magick), 108
colormaps, synchronizing for different Image::Magick images, 98
colorResolve( ), 43
colorsTotal( ), 43
combine program (ImageMagick), 65
command-line scripts (Gimp-Perl), 171
command-line tools, ImageMagick library, 63
Comment( ) (Image::Magick), 85
comments
      PostScript, 297
      SVG, 177
Common Gateway Interface, 365
      (see also CGI scripts)
compare( ) (GD), 40
comparison operators, 420
      overloaded by PDL, 163
complete( ), 370
Composite( ) (Image::Magick), 92
composite images (Image::Magick), 104
Comprehensive Perl Archive Network (see CPAN)
compress( ) (PDF::API2::Content), 349
compressed SVG files, serving, 179
compression, 10-12
      interlacing and, 12
      lossy and lossless, 11
      PDF documents, use in, 300
      raster file formats, 10
      zlib library, 26
"Confidential" stamp, adding to pages of PDF document (example), 341-343
constants
      Key code, in ActionScript, 428
      Math object, ActionScript, 429
container tags (XML), 177
Content object, PDF, 349-352
content stream objects, PDF, 333
Contents attribute of PDF pages, 304
Content-type header, 364
Contrast( ) (Image::Magick), 108
control point for SWF curved edges, 232
control structures, ActionScript, 420
control tags (SWF), 216, 219, 220
convert utility (ImageMagick), 64
Convolve( ) (Image::Magick), 108
convolver tool (Gimp), 395
coordinates
      current point in PostScript, 295
      Draw( ), in Image::Magick, 103
      in Image::Magick, 66
      PostScript pages, 291
      SVG, 179
            path data commands, 185
            text elements, 189
      SWF, 223
copy( ), 48
      GD, 124
copyMerge( ), 48
copyMergeGray( ), 49
copyResampled( ), 49
copyResized( ), 49
copyRotate90( ), 49
copyRotate180( ), 49
copyRotate270( ), 49
corefront( ) (PDF::API2), 344
CPAN
      GD::Graph and GD::TextUtil modules, 117
      Perl scripting extension for Gimp, 147
cr( ) (PDF::API2::Text), 356
Cristy, John, 62
Crop( ) (Image::Magick), 75, 88
crop tool (Gimp), 391
cropbox( ) (PDF::API2::Page), 348
cross-reference (XREF) table, PDF files, 301, 305
CSS (Cascading StyleSheets), 211
cubic Bezier curves (see Bezier curves; curves)
current path (PostScript), 295
current pen position, changes in SWF, 230
current point
      in PDF files, 308
      in PostScript files, 295
cursor for text, moving, 264
curve( ) (PDF::API2::Gfx), 353
curved edge records (SWF shapes), 232
curves
      Bezier selection tool, 391
      cubic Bezier curves
            defining/drawing in PDF, 308
            drawing circles with, 273-277
      drawing with SWF::Shape module, 257
      Gtk::Curve widget, 168
      PDF documents, flatness tolerance, 350
curves_explicit( ), 169
Cyan, Magenta, Yellow, and Black (CMYK color space), 6
CycleColormap( ) (Image::Magick), 108

D[ Top ]
dashed lines, 45
      PDF documents, 350
data types, SWF, 221-223
      bit fields, 222
      coordinates, 223
      integers, 221
Date object methods, ActionScript, 427
Date::Calc module, 127
decoders, image, 370
decoding process for images (Mozilla), 370
default user space (PostScript), 291
DefineFont tags, 218
DefineShape3 tag (SWF), 223-233
      components of, 224
      curved edge records, 232
      End record, 233
      fill style array, 227
      header record, 225
      line style array, 228
      NumFillBits and NumLineBits, 228
      StraightEdge Records, 232
DefineText tags, 218
definition tags (SWF), 216, 217-219, 220
      bitmaps, 218
      buttons, 218
      fields, structure of, 223-233
      morph shapes, 218
      shapes, 217
      sounds, 218
      Sprites, 219
      text and fonts, 218
Deflate compression algorithm, 11
<defs> tags in SVG, 182
deg2rad( ) (Math::Trig module), 55
deletePt( ), 58
density attribute (images), 86
depth
      of colors, 7
      items in Display List, 254
      SWF file objects, 220
<desc> tags in SVG, 182
DesignShape3 tag
      character id, 226
      ShapeRecord list, 230
Despeckle( ) (Image::Magick), 108
dest( ) (PDF::API2::Outline), 359
destroying images, 68
device space, 292
dialog boxes, creating with Gtk module, 169
Dialogs menu (Gimp images), 410
dictionaries
      font, adding to PDF documents, 344
      of PDF objects, 302
Dictionary (SWF files), 219
die( ), errors with PNG files, 37
digital signatures, 86
dimensions, setting for movies, 249
Display( ) (Image::Magick), 65, 81
Display List (SWF files), 219
      SWF::DisplayItem methods for, 250
Display PostScript, 21
display program (ImageMagick), 63
DisplayItem, 250-254
displays_flush( ) (Gimp), 169
disposal method (GIF animation), 77
dithering, 7
      converting 24-bit color images to 8-bit, 44
      converting truecolor image to 16 colors, 8
      Floyd-Steinberg process, 8
      setting attribute for (Image::Magick), 65
DoAction tags (SWF), 219
document events (JavaScript SVG scripting), 204
document file formats, 3, 21-24
      PDF, 23
      PostScript, 21-23
      (see also PDF; PostScript)
Document Object Model (see DOM)
document tree, rendering for SVG, 179
documents
      PDF, structural objects in, 333
      PostScript::Document module, 315, 326-328
dodge and burn tool (Gimp), 395
DOM
      JavaScript, use in, 205
      SVG documents, using with, 175, 176
dotted lines, 45
Draw( ), 66
      Image::Magick, 103
      rectangle, drawing, 68
drawables, 152
      getting new Pixel Region for, 162
      updating, 161
drawCircle( ) (SWF::Shape), 257
drawCurve( ) (SWF::Shape), 257
drawCurveTo( ) (SWF::Shape), 257
drawFontGlyph( ) (SWF::Shape), 258
drawGlyph( ) (SWF::Shape), 263
drawLine( ) (SWF::Shape), 258
drawLineTo( ) (SWF::Shape), 258
drawRect( ), 241, 246
DYNSRC attribute for inline AVI movies, 383

E[ Top ]
ECMAscript (see JavaScript)
Edge( ) (Image::Magick), 109
Edit menu (Gimp images), 402
effects
      Gimp plug-ins for, 149
      Image::Magick images, 106
            AddNoise( ), 107
            Border( ), 107
            Charcoal( ), 108
            Contrast( ), 108
            CycleColormap( ), 108
            Edge( ), 109
            Frame( ), 109
            Implode( ), 111
            OilPaint( ), 113
            Raise( ), 113
            Shade( ), 114
            Solarize( ), 115
            Swirl( ), 115
            Texture( ), 115
            Wave( ), 116
element events (JavaScript), 204
elements
      font, creating for PDF documents, 337
      HTML, links with images in, 379
      HTML::Element module, 371
      SVG, 180
            id attribute, 181
            path, 180
            stroke attributes, 188
            structural, 181-183
            text, 189-193
      XML
            <animateMotion>, 202
            start and end tags, 281
            <text>, 213
      XSLT, transforming slide description format into SVG, 211
      (see also tags)
Elements module (see PostScript::Elements module)
ellipse( ) (PDF::API2::Gfx), 354
ellipses, drawing in Image::Magick, 104
elliptical selection tool (Gimp), 390
EMBED tag (Netscape), 383
Emboss( ) (Image::Magick), 109
empty tags, 177
encapsulated movies (Sprites), 219
Encapsulated PostScript (EPS), 21
      adding file in PostScript::Elements module, 331
end( ) (PDF::API2), 344
End record (SWF tags), 233
End tag (SWF), 219
end tags, XML, 177, 281
endpath( ) (PDF::API2::Gfx), 354
end_tag( ), 282
endTag( ) (XML::Writer), 198
Enhance( ) (Image::Magick), 109
environment variable, HTTP USER AGENT, 363
EPSF files, 21
EPSI (Encapsulated PostScript Interchange) file, 21
Equalize( ) (Image::Magick), 109
eraser tool (Gimp), 394
errors
      CGI, reporting in server log file, 372
      Image::Magick module, listing of errors and warning codes, 69
even-odd fill method (PDF), 310
event loops in ActionScript, 243
events
      document, JavaScript SVG scripting, 204
      element, JavaScript SVG scripting, 204
exiting Gimp plug-ins, 154
explosion effect (Image::Magick images), 111
Extensible Stylesheet Language (XSL), 211

F[ Top ]
FDB file, 267
fields
      bit fields in SWF, 222
      Refresh, in HTTP header, 367
      SWF::TextField module, 239, 265-267
file formats, 3
      animation, 3
      document, 3, 21-24
            PDF, 23
            PostScript, 21-23
      Flash platform, 216
      GD2, 36
      image, 3
      raster, 10
      raster and vector, 3
      support libraries for Gimp, 146
      supported by Image::Magick, 65, 413-417
            getting information on, 85
      SVG, 175-194
            creating with Perl, 195-214
      TIFF (Tagged Image File Format), 11
File menu (Gimp images), 401
File menu (Gimp toolbox), 395
filehandles, reading/writing images through, 35
fill( ) (PDF::API2::Gfx), 354
fill style array (SWF tags), 224, 227
Fillcolor( ) (PDF::API2::Content), 349
filledPolygon( ), 55
fills
      bucket fill tool (Gimp), 392
      Pattern object, PDF, 360
      PDF graphics path, 309
      StyleChangeRecord (SWF tags), 230
      SVG shape elements, 188
      SWF::Fill module, 239, 268
      SWF::Shape module, 256
            left and right, 259
      tint, controlling with PostScript::Elements module, 328
fillstroke( ) (PDF::API2::Gfx), 354
filtering or special effect scripts, 149
filters
      applying to Image::Magick images, 106
            Charcoal( ), 108
            Convolve( ), 108
            Despeckle( ), 108
            Emboss( ), 109
            Enhance( ), 109
            Equalize( ), 109
            MedianFilter( ), 111
            Modulate( ), 112
            ReduceNoise( ), 114
      Gaussian blur filter, 161
      Gimp Filters menu, 411
      Gimp plug-ins for, 149
findfont function, 296
Flash
      animation, SWF format, 20
      file formats, 216
      Generator Authoring Extensions for, 267
      history of, 215
      Ming and, 238
      (see also SWF file format)
Flatness( ) (PDF::API2::Content), 350
flip tool (Gimp), 392
flipHorizontal( ), 50
flipVertical( ), 50
floating layers, handling in Gimp, 159-162
Flop( ) (Image::Magick), 88
Floyd-Steinberg dithering process, 8
font( ) (PDF::API2::Text), 356
font dictionary, 296
fonts
      GD module, 53
      GD::Font class, 26
      graph labels, setting for, 134
      graph titles, setting for, 133
      in graphs, 142-144
      Image::Magick, 67
      legends for graphs, 133
      PDF
            adding font dictionary to document, 344
            API2 module, creating font elements for document, 337
            Font dictionary object, 303
            Font objects, 304
            fourteen base fonts for PDF viewer, 304
            management of, 300
            PostScript Type 1, 346
            TrueType, 347
      pie chart labels, setting for, 132
      PostScript files, 296
      PostScript::Metrics module, 322
            accessing information about, 324
      QueryFont( ) (Image::Magick), 106
      QueryFontMetrics( ) (Image::Magick), 102, 106
      setting, 264
      strings and, 53
            bitmapped GD fonts, 53
            standard GD fonts, 53
            width and height, 55
      SWF files, defining for, 218
      SWF::Font module, 239, 267
      text fields, setting for, 266
footers, PostScript documents, 328
Frame( ) (Image::Magick), 109
frame rates, SWF, 235
frames
      labeling current, 247
      moving on to next, 248
      SWF::Sprite methods, 249
FreeType fonts, downloading Version 2, 26
functions
      ActionScript, 423
      Gimp
            calling in C or Perl, 156
            object-oriented vs. procedural style, 155-158
      PDL, 163
      PostScript, 294-296
      trigonometric, overloaded by PDL, 163

G[ Top ]
Gamma( ) (Image::Magick), 97
Gaussian blur filter, 161
gd( ), 27, 39, 130
gd graphics library, 25
GD module, 26
      applications, examples of, 27
            BrokenImage module, 33
            customized billboard, 29-33
            hello world, 27
      file formats supported, 27
      fonts, 53
      image data from the Web, processing, 37
      image generation script, 374
      Image::Magick image object, converting to, 81
      reading and writing methods, 35
gd2( ), 39
GD2 file format, 36
      creating images from, 36
      creating new images from, 37
gdBrushed constant, 43, 45
GD::Chart module, 122
GD::Convert module, 25
GD::Font module, 26
GD::Graph module, 25, 117-144
      attributes of graph objects, 134-142
            all graphs, 134-136
            bar graphs, 138
            graphs with axes, 136-138
            graphs with lines, 139
            graphs with points, 140
            logos and legends, 141
            mixed graphs, 141
            pie graphs, 141
      colors and fonts, 142-144
            predefined color names and hex values for, 142
      methods, 130-134
            can_do_ttf( ), 131
            gd( ), 130
            get( ), 131
            get_hotspot( ), 132
            new( ), 130
            plot( ), 131
            set( ), 132
            set_label_font( ), 132
            set_legend( ), 133
            set_legend_font( ), 133
            set_text_clr( ), 133
            set_title_font( ), 133
            set_value_font( ), 132
            set_x_axis_font( ), 134
            set_x_label_font( ), 134
            set_y_axis_font( ), 134
            set_y_label_font( ), 134
      types of graphs implemented by, 130
      web-based biorhythm server (example), 125-130
GD::Graph::bars module, 127
GD::Graph::Data module, 120
GD::Image module, 26, 35
GD::Polygon class, 27, 52
GD::Polygon module, 26
gdStyledBrushed constant, 43, 46
GD::TextUtil package, 117
gdTransparent constant, 46
Generator Authoring Extensions for Macromedia Flash, 267
generic Object, ActionScript, 432
geometry parameter (Image::Magick images), 89
Get( ), 65
get( ) (GD::Graph), 131
GetAttribute( ), 65
get_bits( ), 236
getBounds( ), 41
getBytesLoaded( ), 277
getBytesTotal( ), 277
getHeight( ) (SWF::Bitmap), 263
get_hotspot( ) (GD::Graph), 132
getPixel( ), 43
getPt( ), 58
getShape1( ) (SWF::Morph), 271
getShape2( ) (SWF::Morph), 271
getStringWidth( ) (SWF::Text), 264
gettext program, 150
get_vector( ), 170
getWidth( ) (SWF::Bitmap), 263
gfx( ) (PDF::API2::Page), 348
Gfx objects, PDF documents, 334-336, 353-355
Ghostscript interpreter, 23
Ghostscript package, 291
      getting, 292
GhostView PostScript viewer, 315
GIF file format, 3, 16
      animations, 3, 74-79
            Application Extension block, 77
            color palette, 8
            Graphics Control Extension Block, 77
      color depth, 7
      compression, 11
      converting JPEG to, 8
      indexed colors, 8
      interlacing, 12
      MIME type, 364
      transparency, support of, 9
Gimp, 145-172, 385-412
      adding new features to, 158-170
            handling selections and layers, 159-162
            manipulating raw data with PixelRegions, 162-167
            user interfaces, creating more complex, 167-170
      getting, 145
      Gimp::Fu module, register( ), 385-389
      image menu hierarchy, 401-412
            Dialogs menu, 410
            Edit menu, 402
            File menu, 401
            Filters menu, 411
            Guides menu, 412
            Image menu, 406-409
            Layers menu, 409
            Script-Fu menu, 412
            Select menu, 403
            Tools menu, 410
            View menu, 405
      installing, 146
      installing Perl scripting extension, 147
      menu structure, 155
      modules in Gimp-Perl extension, 149
      object-oriented vs. procedural programming, 155-158
      plug-ins
            AA save file, 381-383
            writing in Perl, 148-150
      Procedural Database (see PDB)
      standalone scripts, 171
      toolbox, 389-395
            airbrush tool, 394
            blend tool, 393
            bucket fill tool, 392
            clone tool, 394
            color picker tool, 392
            convolver tool, 395
            crop tool, 391
            dodge and burn tool, 395
            eraser tool, 394
            flip tool, 392
            ink tool, 395
            magnifying glass tool, 391
            measure tool, 395
            move tool, 391
            paintbrush tool, 394
            pencil tool, 394
            selection tools, 389-391
            smudge tool, 395
            text tool, 392
            transform tool, 392
      toolbox menu hierarchy, 395-401
            File menu, 395
            Xtns menu, 398
      writing scripts, 150-155
            exiting plug-in, 154
            text grid script (example), 150-154
Gimp module, 148
Gimp-data-extras, 146
gimp_drawable_get( ), 162
gimp_floating_sel_anchor( ), 154
Gimp::Fu module, 148
Gimp::Fu::register( ), 155, 159
Gimp::GDrawable class, 162
gimp_image_layer_new, 152
gimp_install_procedure( ), 168
gimp_layer_copy( ), calling in C and Perl, 156
Gimp::Net module, 171
Gimp::on_net( ), 171
Gimp::on_query( ), 167
Gimp::on_run( ), 167
Gimp::PixelRgn class, 162
Gimp-plugins-unstable, 146
gimptool utility, 154
global palette for GIF animation files, 78
GNU
      autoconf tools for GD components, 26
      Ghostscript, 292
      Image Manipulation Program (see Gimp)
      LGPL (Lesser GNU Public License), 238
      Public License (GPL), 145
Golden Mean, logarithmic spiral using, 255
gradients
      gradient tool (Gimp), 393
      SWF::Gradient module, 239, 269
Graphic Interchange Format (see GIF file format)
graphics, 3-24
      color, 5
            CMYK color space, 6
            color depth, 7
            images with color tables, 7
            RGB color space, 5
      compression, 10-12
      document file formats, 21-24
            PDF, 23
            PostScript, 21-23
      file formats, 3
      GNU Image Manipulation Program (see Gimp)
      raster, 10-16
            compression, 10-12
            compression and interlacing, 10
      transparency and alpha, 9
      vector, 17-20
            SVG, XML images with, 17-20
Graphics Control Extension Block (GIF animation), 77
graphics state operators (PDF), 308
graphs, 117-144
      attributes of, 134-142
            all graphs, 134-136
            bar graphs, 138
            graphs with axes, 136-138
            graphs with lines, 139
            graphs with points, 140
            logos and legends, 141
            mixed graphs, 141
            pie graphs, 141
      bar graphs, 127
      colors and fonts, 142-144
            colour_list( ), 143
            predefined color names and hex values for, 142
      legends for, 133
            fonts, 133
      pie chart (example), 122-125
      stock graph with mixed chart types (example), 120-122
      types implemented by GD::Graph, 130
grayscale images
      Channel( ) (Image::Magick), 97
      combining, 49
      converting RGB colors to, 6
      Enhance( ) (Image::Magick), creating with, 109
      mask files for PDF images, 344
      PNG format, 7
grouping tags (XML), 177
groups, defining in SVG documents, 181
GTK libraries, 146
Gtk module, 167
Gtk::Curve widget, 168
Guides menu (Gimp images), 412
GUIs, creating more complex with Gimp, 167-170

H[ Top ]
hand-drawn selection tool (Gimp), 390
hashes (lookup), for SWF tag codes, 234
Hayden, Dave, 238
header record (SWF tags), 225
headers
      HTTP, 364
            generating with CGI.pm, 366
      PDF documents, 302
      PostScript documents, 297, 327
      SWF tags, 224
height
      bitmaps, 263
      bounding box for text field, 266
      fonts in text fields, setting for, 266
      fonts, setting for, 264
      HEIGHT attribute (Img tag), 375-377
      setting for movies, 249
height( ), 53, 55
hello world application (example), 27
      creating with ImageMagick, 66
      creating with PDF::API2 module,
            graphics, adding, 334
            Text object, using, 333
hexadecimal values
      color names, converting to rgb values, 144
      converting binary strings to, 229
      representations of GD::Graph color names, 142
      RGB colors, 5
hexconvert.pl script, 229
histogram equalization on Image::Magick images, 109
hit area for buttons, 261
horizontal lines, indicating for SWF shapes, 232
hspace( ) (PDF::API2::Text), 356
HSPACE tags (HTML), 377
HTML
      biorhythm graphing (example), generating for, 127
      browser handling of features, inconsistencies in, 363
      embedding SVG images, 178
      MIME type for documents, 364
      presenting images in, 371-384
            background images, 383
            layout and spacing attributes, 377
            OBJECT tag, 383
HTML, presenting images in
            SRC attribute, 371-374
            WIDTH and HEIGHT attributes, 375-377
HTML::Element module, 371
HTTP
      headers, 364
            generating with CGI.pm, 366
            Refresh field in, 367
      request/response cycle for web servers, 363
      USER AGENT environment variable, 363
hue, 143
hybrid( ) (PDF::API2::Page), 348

I[ Top ]
ICC (International Color Consortium), Profile Format Specification, 95
icon( ), 33
id attribute (SVG elements), 181
identify program (ImageMagick), 64
IJG JPEG library, 39
image( )
      PDF::API2 module, 344
      PDF::API2::Gfx module, 354
Image drawing primitive for Draw( ) in Image::Magick, 104
<image> element (XML), 213
Image Library (Mozilla browser), 369
image menu hierarchy (Gimp), 401-412
      Dialogs menu, 410
      Edit menu, 402
      File menu, 401
      Filters menu, 411
      Guides menu, 412
      Image menu, 406-409
      Layers menu, 409
      Script-Fu menu, 412
      Select menu, 403
      Tools menu, 410
      View menu, 405
Image::clone( ), 48
Image::Magick module, 8, 40, 62-116
      adding comments to files, 85
      annotation and drawing, 100-106
            Annotate( ), 101
            attributes for, 100
            ColorFloodfill( ), 102
            Draw( ), 103
            Label( ), 105
            QueryFont( ), 106
            QueryFontMetrics( ), 106
      applications, examples of, 70
            GIF animation, 74-79
            hello world application, 66
            thumbnails, 70-74
      color and transparency, 95-100
            attributes for, 95-97
            Channel( ), 97
            Gamma( ), 97
            Map( ), 98
            MatteFloodfill( ), 98
            Profile( ), 98
            Quantize( ), 98
            QueryColor( ), 99
            Segment( ), 99
            Transparent( ), 99
      command-line tools, 63
      converting image objects to GD, 81
      converting images to/from BLOBs, 81
      copying and composing images, 91-95
            Append( ), 91
            Clone( ), 92
            Composite( ), 92
            Montage( ), 93-95
      display utility, 39
      errors, 69
      features, 65
      file formats supported, 413-417
            getting information about, 85
      filters and effects, 106-116
            AddNoise( ), 107
            attributes for, 107
            Average( ), 107
            Blur( ), 107
            Border( ), 107
            Charcoal( ), 108
            Colorize( ), 108
            Contrast( ), 108
            Convolve( ), 108
            CycleColormap( ), 108
            Despeckle( ), 108
            Edge( ), 109
            Emboss( ), 109
            Enhance( ), 109
            Equalize( ), 109
            Frame( ), 109
            Implode( ), 111
            MedianFilter( ), 111
            Modulate( ), 112
            Mogrify( ), 112
            MogrifyRegion( ), 112
            Negate( ), 112
            Normalize( ), 112
            OilPaint( ), 113
            Opaque( ), 113
            Raise( ), 113
            ReduceNoise( ), 114
            Shade( ), 114
            Sharpen( ), 114
            Solarize( ), 115
            Spread( ), 115
            Swirl( ), 115
            Texture( ), 115
            Threshold( ), 116
            Wave( ), 116
      fonts, 67
      installing, 63
      MD5 public key signature for files, 86
      Ping( ), 377
      PostScript documents, handling, 23
      reading and writing images, 79
      retrieving and setting file information, 82-85
      returning file information with Ping( ), 85
      sizing and transforming images, 86-91
            Chop( ), 88
            Crop( ), 88
            Flop( ), 88
            Magnify( ), 88
            Minify( ), 89
            page sizes and geometries, 87
            Resize( ), 89
            Roll( ), 89
            Rotate( ), 90
            Sample( ), 90
            Scale( ), 90
            Shear( ), 91
            sizing and resolution attributes, 86
            Trim( ), 91
            Zoom( ), 91
imagemask( ) (PDF::API2), 344
ImageReq data structure, 370
images
      ASCII art representations of, 379
            saving image as ASCII approximation, 381
      copying and transforming, 48
      display by Mozilla image library, 369
      drawing and manipulation methods, 50-53
      GNU Image Manipulation Program (see Gimp)
      line styles, assigning to, 46
      presenting in HTML, 371-384
            background images, 383
            layout and spacing attributes, 377
            OBJECT tag, 383
            SRC attribute, 371-374
            text-only browsers, 379-383
            WIDTH and HEIGHT attributes, 375-377
      SVG, Unicode text in, 208-210
Image::Size module, 377
ImageToBlob( ) (Image::Magick), 81
IMG tags (HTML), 368, 371
      OBJECT tag as replacement for, 383
      SRC attribute, 371-374
Implode( ) (Image::Magick), 111
import program (ImageMagick), 64
importpage( ) (PDF::API2), 345
indentation for first line of text fields, 266
index( ), 164
indexed color images
      8-bit, creating, 36
      GIF and PNG files, 8
      transparency, 9
infinite loops, defining in Image::Magick, 77
info( ) (PDF::API2), 345
init( ), 370
ink tool (Gimp), 395
inline images (SVG, embedded in XHTML), 178
inplace( ), 164
input/output (I/O)
      input data from chat clients, 284
      input from user, tracking with buttons, 259
      input to CGI script, parsing, 365
      reading in binary image file and printing it to STDOUT, 372
integers in SWF, 221
      converting little-endian binary values to, 222
intelligent scissors tool (Gimp), 391
interlaced(), 41
interlacing, 10, 12
      Adam7 (PNG) format, 13
      progressive JPEGs, 14
      scanline (GIF) format, 12
International Color Consortium (ICC) Profile Format Specification, 95
internationalization, translating strings into different languages, 150
Internet standard newlines, 364
interpreters
      Perl, 147, 368
      PostScript, 291
invoice (PostScript), creating for online transactions, 318-320
IO::Handle module, 198
IO::Scalar module, 198
IO::Select module, 283
IO::Socket module, 283
IO::Socket::INET module, 283
isTrueColor( ), 41

J[ Top ]
JavaScript
      DOM, use in, 205
      SVG animation, creating, 204-208
            document events, 204
            element events, 204
            functions, 206
JFIF file format (JPEG File Interchange Format), 15
Joint Pictures Expert Group (see JPEG file format)
jpeg( ), 39
JPEG file format, 3, 15
      color depth, 7
      color reduction, 8
      compression, 10
            custom system, 12
            lossy, 11
      creating images from, 36
      library, downloading, 26
      MIME type, 364
      Progressive JPEGs, 14
      transparency and, 9
justified text, 265

K[ Top ]
Key code constants, ActionScript, 428
Key object methods, ActionScript, 428
keyboard events, tracking with buttons, 259
keys (legends) for graphs, 133
Kids attribute, PDF Pages object, 303
Kimball, Spencer, 145

L[ Top ]
Label( ) (Image::Magick), 105
labelFrame( )
      SWF::Movie module, 247
      SWF::Sprite module, 249
labels
      graph axes, setting fonts for, 134
      pie charts, 124
            setting fonts, 132
      text fields, setting for, 267
layers
      Gimp Layers menu, 409
      handling in Gimp, 159-162
lead( ) (PDF::API2::Text), 356
leading in PDF documents, 356
legends for graphs, 133, 141
Lehmann, Marc, 148
Lempel-Ziv-Welch compression (see LZW compression algorithm)
Length attribute for PDF pages, 304
libgd C library, 26
libgimp, 156
      objects used to call functions, 157
licenses
      GNU Public License, 145
      LGPL (Lesser GNU Public License), 238
line( ) (PDF::API2::Gfx), 354
line style array (SWF tags), 224, 228
line styles, 45
      gdStyled and gdStyledBrushed constants, 44
      shape stroking, 259
      SWF shapes
            changes in, 230
            StraightEdge Records, 232
linecap( ) (PDF::API2::Content), 350
linedash( ) (PDF::API2::Content), 350
linefeeds, 364
linejoin( ) (PDF::API2::Content), 351
lines
      drawing in PostScript, 295
      drawing with Draw( ) (Image::Magick), 104
      drawing with PDF Gfx object, 334
      drawing with PostScript::Elements module, 328, 331
      drawing with SWF::Shape module, 258
      graphs with, 139
      spacing in text fields, 266
linewidth( ) (PDF::API2::Content), 351
links
      images within link elements in HTML, 379
      SVG linking elements, 180, 193
            xmlns namespace attribute, 191
      XLink standard, 176
little-endian byte order, 221, 226
loading SWF documents, creating preloader for, 276-279
loadMovie( ) (SWF::Sprite), 280
local palette for GIF animation files, 78
locked files, SWF, 219
logarithmic spiral using the Golden Mean, 255
logical operators, ActionScript, 419
logos for graphs, 141
long tags (SWF), header records for, 225
Loop Extension, 77
loops
      browser iterations through GIF animation files, 77
      event loops in ActionScript, 243, 244
      infinite, in Image::Magick, 77
lossless compression, 11
lossy compression, 11
luminance, 143
LWP module, 37
LZW (Lempel-Ziv-Welch) compression algorithm, 11
      GIF files and, 16

M[ Top ]
MacPerl, GD in standard Perl distribution, 26
Macromedia
      Flash (see Flash)
      player and browser plug-in, 216
magic number and version in PostScript documents, 297
magic wand tool (Gimp), 390
Magnify( ) (Image::Magick), 88
magnifying glass tool (Gimp), 391
make_bounce_path( ), 202
makefdb tool, 267
Makefile.PL script, 147
map( ), 58
Map( ) (Image::Magick), 98
margins, setting for text blocks, 267
mask, adding to PDF images, 344
Math object, ActionScript
      constants, 429
      methods, 429
Math::Trig module, 55
Matte primitive for Draw( ) (Image::Magick), 104
MatteFloodfill( ) (Image::Magick), 95, 98
Mattis, Peter, 145
MD5 public key signature for image files, 86
measure tool (Gimp), 395
mediabox( )
      PDF::API2 module, 345
      PDF::API2::Page module, 348
MediaBox attribute for PDF pages, 303
MedianFilter( ) (Image::Magick), 111
menus, Gimp
      image menu hierarchy, 401-412
      structure of, 155
      toolbox, 395-401
            File menu, 395
            Xtns menu, 398
"method style" object-oriented syntax, 157
MIME types, 364
Ming, 20, 238-288
      Astral Trespassers game (example), 240-246
            SWF document, steps in creating, 240
      downloading and installing, 238
      Perl interface, 239
      SWF module, 246
      SWF recipes, 273-288
            communicating between SWF client and Perl backend, 282-288
            drawing circles, 273-277
            preloader, creating, 276-279
            Sprite-based document assembly with XML, 280-283
      SWF::Action module, 272
      SWF::Bitmap module, 262
      SWF::Button module, 259-261
      SWF::DisplayItem module, 250-254
      SWF::Fill module, 268
      SWF::Font module, 267
      SWF::Gradient module, 269
      SWF::Movie module, 247
      SWF::Shape module, 254-259
      SWF::Sound module, 272
      SWF::Sprite module, 249
      SWF::Text module, 263
      SWF::TextField module, 265-267
Minify( ) (Image::Magick), 89
mixed graphs, attributes of, 141
mobile SVG, 176
modifying existing PDF files, 341-343
mod_perl, 368
Modulate( ) (Image::Magick), 112
modules
      Apache, writing directly in Perl, 368
      Gimp and Gimp::Fu, 148
      Gimp-Perl extension, 149
      Gtk and PDL, 147
      PDF, 333-360
      PostScript, 22, 315-332
      XML, 19
      (see also listings for individual module names)
Mogrify( ) (Image::Magick), 112
mogrify program (ImageMagick), 64
MogrifyRegion( ) (Image::Magick), 112
Montage( ) (Image::Magick), 71, 93-95
montage program (ImageMagick), 64
morph shapes (SWF), 218
      circle that transforms into 15-point star, 276
      SWF::Morph module, 239, 269-271
mouse events, tracking with buttons, 259
Mouse object methods, ActionScript, 430
move( )
      PDF::API2::Gfx module, 354
      SWF::DisplayItem module, 252
move tool (Gimp), 391
MoveCenter( ) function (JavaScript), 207
MoveElements( ) function (JavaScript), 206
movePen( ) (SWF::Shape), 259
movePenTo( ) (SWF::Shape), 258
moveTo( )
      SWF::DisplayItem module, 252
      SWF::Fill module, 268
      SWF::Text module, 264
moveto function, 295
MovieClip objects, 239, 249
      methods, 430
      properties, 431
movies
      adding MP3 files, 272
      building from library of sprites, 280-283
      encapsulated (sprites), 219
      incorporating bitmap image, 262
      SWF files, 215
      SWF::Movie module, 239
            creating new Movie objects, 243
            methods, listed, 247
Mozilla browser, 369
MP3 files
      adding to movies, 272
      embedded in SWF files, 249
multi-dimensional matrix of bytes, 163
Multipurpose Internet Mail Extensions (MIME), 364

N[ Top ]
name object in PDF, 302
names
      items in Display List, 254
      text fields, 267
namespaces
      perl_fu_, 159
      SVG, 181
      XLink, importing into SVG, 193
      XML, 177
      xmlns attribute in SVG, 191
nchars( ), 54
Negate( ) (Image::Magick), 112
Netscape
      EMBED tag, 383
      Loop Extension, 77
      Mozilla browser, 369
new( ), 36
      GD::Graph, 130
      PDF::API2 module, 337, 345
      PostScript::Document module, 327
      PostScript::Elements module, 330
      PostScript::TextBlock module, 322
      SWF::Action module, 272
      SWF::Bitmap module, 263
      SWF::Button module, 260
      SWF::Font module, 267
      SWF::Gradient module, 269
      SWF::Morph module, 271
      SWF::Movie module, 248
      SWF::Shape module, 259
      SWF::Sound module, 272
      SWF::Sprite module, 249
      SWF::Text module, 264
      SWF::TextField module, 265
newFromGd( ), 36
newFromGd2( ), 36
newFromGd2Data( ), 36
newFromGd2Part( ), 37
newFromPNG( ), 36
newFromPng( ), 37
newFromXbm( ), 38
newlines
      Internet standard, 364
      PDF::API2::Text module, 356
newPalette( ), 36
newTrueColor( ), 36
next buttons, 200
nextFrame( )
      SWF::Movie module, 248
      SWF::Sprite module, 249
nl( ) (PDF::API2::Text), 356
non-zero winding rule fill method (PDF), 310
Normalize( ) (Image::Magick), 112
number of bits (SWF DefineShape3 tag), 224
numElements( ) (PostScript::TextBlock), 323
NumFillBits and NumLineBits (SWF tags), 228

O[ Top ]
Object methods, ActionScript, 432
OBJECT tags (HTML), 371, 383
objected-oriented programming vs. procedural style in Gimp, 155-158
objects
      ActionScript (see ActionScript, objects)
      Gimp, 157
      PDF
            document body, 302-305
            types of, 333
      PDL, 163
      SWF, depth values, 220
Observer (Mozilla browser), 370
offset( ), 54, 59
OilPaint( ) (Image::Magick), 113
on_net( ) (Gimp), 171
on_query( ) (Gimp), 167
on_run( ) (Gimp), 167
Opaque( ) (Image::Magick), 113
open( ) (PDF::API2), 341, 345
openpage( ) (PDF::API2), 341, 345
openPolygon( ), 52
OpenSWF group, 216
operand stack, 294
operators
      ActionScript, 418-420
      overloading (Perl operators overloaded by PDL), 163
      PDF
            graphic drawing, 306-310
            stroking and filling operators, 311
            text, drawing, 310-313
outline( ) (PDF::API2::Outline), 360
Outline object, PDF, 357-360
outlines( ) (PDF::API2), 346
output( ) (SWF::Movie), 248
overloaded operators, 163

P[ Top ]
page( ) (PDF::API2), 346
page attribute (images), 86
      page sizes and corresponding geometries, 87
Page Description Language (see PostScript)
pages
      PDF
            Page dictionary objects, 303
            Page object, cloning, 343
            Pages dictionary object, 302
            PDF::API2::Page module, 347-349
      PostScript
            number of pages comment, 297
            size in points, 298
      size in points, 293
pages( ) (PDF::API2), 346
paintbrush tool (Gimp), 394
paper, standard sizes for, 293
param( ) (CGI), 365
parsing
      CGI input with CGI.pm, 365
      SWF file with Perl, 233-237
      XML::Parser module, 280
password-protected SWF files, 219
path elements, SVG, 180
paths
      clipping, 335, 353
      closing in PDF documents, 353
      ending in PDF, 354
      PDF graphic drawing operators
            constructing with, 306
            filling and stroking, 309
      PostScript, 295
      SVG, 104, 203
            commands, translation of, 185
            data comands, 185
            <path> element, 184
            tags for, 182, 187-189
            text, 190
Pattern object, PDF, 360
PDB (Procedural Database), 148
      functions and plug-ins, searching, 156
      installing plug-in code, 168
      standalone script to extract information, 171
PDF, 3, 23, 299-314
      collaborative editing and security, 300
      creating documents with Perl, 333-360
            adding to existing files, 341-343
            address labels (example), 336-341
            PDF::API2 module (see PDF::API2 module)
      efficient document storage, 300
      font management, 300
      graphic drawing operators, 306-310
            constructing paths, 306
            filling and stroking the path, 309
            setting graphics state, 308
      interactive format, 300
      MIME type, 364
      operators for text drawing, 310-313
      references for further reading, 314
      structure of files, 301-306
            body, 302-305
            cross-reference (XREF) table, 305
            headers, 302
            sections, listed, 301
            trailers, 306
      Text::PDF module, drawing with, 313
      thumbnail images of first page, 73
PDF::API2 module, 23, 333-336
      inserting JPEG image and clipping it, using Gfx object, 335
      methods, 343-347
            clonepage( ), 343
            corefront( ), 344
            end( ), 344
            image( ), 344
            imagemask( ), 344
            importpage( ), 345
            info( ), 345
            mediabox( ), 345
            new( ), 345
            open( ), 345
            openpage( ), 345
            outlines( ), 346
            page( ), 346
            pages( ), 346
            pdfimage( ), 346
            psfont( ), 346
            saveas( ), 346
            stringify( ), 347
PDF::API2 module, methods
            ttfont( ), 347
            update( ), 347
PDF::API2::Annotation module, 360
PDF::API2::Barcode module, 360
PDF::API2::Color module, 360
PDF::API2::Content module, 349-352
      compress( ), 349
      Fillcolor( ), 349
      Flatness( ), 350
      linecap( ), 350
      linedash( ), 350
      linejoin( ), 351
      linewidth( ), 351
      restore( ), 349
      rotate( ), 351
      save( ), 349
      scale( ), 351
      skew( ), 351
      strokecolor( ), 352
      transform( ), 352
      translate( ), 352
PDF::API2::Gfx module, 353-355
      arc( ), 353
      circle( ), 353
      clip( ), 353
      close( ), 353
      curve( ), 353
      ellipse( ), 354
      endpath( ), 354
      fill( ), 354
      fillstroke( ), 354
      image( ), 354
      line( ), 354
      move( ), 354
      poly( ), 355
      rect( ), 355
      rectxy( ), 355
      stroke( ), 355
PDF::API2::Lite module, 360
PDF::API2::Outline module, 357-360
      dest( ), 359
      outline( ), 360
PDF::API2::Page module, 347-349
      artbox( ), 348
      bleedbox( ), 348
      cropbox( ), 348
      gfx( ), 348
      hybrid( ), 348
      mediabox( ), 348
      text( ), 348
      trimbox( ), 349
PDF::API2::Pattern module, 360
PDF::API2::Text module, 355-357
      charspace( ), 355
      cr( ), 356
      font( ), 356
      hspace( ), 356
      lead( ), 356
      nl( ), 356
      text( ), 356
      text_center( ), 357
      textln( ), 357
      text_right( ), 357
      text_utf8( ), 357
      wordspace( ), 357
pdfimage( ) (PDF::API2), 346
PDL (Perl Data Language), 147, 162
      objects, 163
pen, moving, 230, 258, 259
pencil tool (Gimp), 394
performance, increasing for servers, 367-369
      image farming, 368
      installing mod_perl, 368
Perl
      Gtk module, 147
      Ming, interface to (see Ming)
      scripting extension for Gimp, installing, 147
      XML modules, 19
Perl Server extension (Gimp), 171
perl_fu_ namespace, 159
perspective mode, 392
piddles, 163
pie charts
      attributes of, 141
      example of, 122-125
Ping( ) (Image::Magick), 85, 377
      information about image size, 82
Pixel Regions, 162-167
pixmaps (see XPM file format)
pkzip utility, Deflate algorithm, 11
PlaceObject tags (SWF), 219
playback rate for movies, setting, 249
plot( ) (GD::Graph), 120, 131
plug-ins
      Gimp, 148
            AA save file, 381-383
            Adjust Alpha, 167-170
            Apply Tint, 159-162
            building with gimptool, 155
            writing in Perl, 148-150
      Macromedia/Flash player, 216
      standalone scripts, 150
png( ), 32, 39
PNG file format, 3
      color depth, 7
      compression
            lossless, 11
            no proprietary restraints, 12
      creating images from, 36
      graphics library, 26
      image data, writing in, 32
      indexed colors, 8
      interlacing, 13
      MIME type, 364
      open standard for web graphics, 14
      reading/writing data from, 37
      transparency, support of, 9
POD (Plain Old Documentation) for Gimp plug-in, 154
points, 292
      anchor and control, for SWF curved edges, 232
      current point in PDF files, 308
      current point in PostScript, 295
      drawing with Draw( ) (Image::Magick), 104
      graphs with, attributes of, 140
      page size in PostScript, 298
      standard paper sizes in, 293
poly( ) (PDF::API2::Gfx), 355
polygon( ), 55
<polygon> elements (SVG), 185
polygons
      drawing and manipulation methods, 55-61
      drawing with Draw( ) (Image::Magick), 105
polyline, drawing with Draw( ) (Image::Magick), 105
<polyline> element (SVG), 185
Portable Document Format (see PDF)
PostScript, 3, 21-23, 291-299
      document structuring conventions, 296-299
            body section, 298
            example program, 298
            prolog section, 297
      functions, 294-296
      interpreter, 291
      MIME type, 364
      modules, 315-332
            creating printable documents from Web interface, 316-320
      page, defining, 291-294
      PDF vs., 300
      reference for further reading, 314
      resolution, controlling in Image::Magick, 86
PostScript::Document module, 315, 326-328
      addFooter( ), 328
      addHeader( ), 327
      addText( ), 327
      new( ), 327
      Write( ), 328
PostScript::Elements module, 315, 328-332
      addArc( ), 330
      addBox( ), 331
      addEPS( ), 331
      addLine( ), 331
      new( ), 330
      Write( ), 332
PostScript::Metrics module
      font information, accessing, 324
      fonts, 322
PostScript::TextBlock module, 315, 320-325
      addText( ), 322-324
      new( ), 322
      numElements( ), 323
      Write( ), 321, 324
PRE tags (HTML), 381
preloader for SWF documents, creating with Ming, 276-279
presentation, SVG file, 195-201
previous buttons, 200
print spoolers, obtaining information from PostScript structural comments, 297
printer's point, 292
printing with PDF and PostScript (see PDF; PostScript)
Procedural Database (see PDB)
procedural definitions section (PostScript documents), 298
procedural scripting, object-oriented vs. (in Gimp), 155-158
procedure type (PROC_PLUG_IN) for Gimp, 168
Profile( ) (Image::Magick), 98
progressive display of a downloaded image, 12
Progressive JPEGs, 14
prolog (PostScript documents), 297
properties
      ActionScript, 424
      MovieClip object, ActionScript, 431
      Number object, ActionScript, 432
      XML object, ActionScript, 435
      XMLSocket object, ActionScript, 435
Protect tags (SWF), 219
psfont( ) (PDF::API2), 346

Q[ Top ]
Q factor, 16
quadratic Bezier curves, 232, 353
quantization process, 7
Quantize( ) (Image::Magick), 65, 98
query( ), 167
query strings, 365
QueryColor( ) (Image::Magick), 99
QueryFont( ) (Image::Magick), 106
QueryFontMetrics( ), 67, 102
      Image::Magick, 106
QueryFormat( ) (Image::Magick), 85
query_string( ) (CGI), 366

R[ Top ]
radians in trigonometric function values, 129
Raise( ) (Image::Magick), 113
raster file formats, 3, 10-16
      compression, 10-12
      compression and interlacing, 10
      GIF, 16
      interlacing, 12-14
      JPEG, 15
      PNG, 14
      PostScript, rendering in, 296
      rasterizing SVG files, 19
rate for movie playback, setting, 249
ratios for morph shapes, 254
raw data, manipulating with PixelRegions, 162-167
RDF (Resource Description Framework), 176
Read( ), 66
      Image::Magick, 79
reading images, 35, 79
      new( ), newPalette( ), and TrueColor( ) methods from GD::Image class, 35
read_rect( ), 237
rect( ) (PDF::API2::Gfx), 355
rectangle( ), 29, 53
rectangles
      drawing in Image::Magick, 68, 104
      drawing within shapes, 246
      RECT structure in SWF, 226, 237
      transformed as group in SVG, 182
rectangular selection tool (Gimp), 390
rectxy( ) (PDF::API2::Gfx), 355
Redo command, Gimp, 160
ReduceNoise( ) (Image::Magick), 114
Refresh field in HTTP header, 367
register( ) (Gimp::Fu), 385-389
registered MIME types, 364
relative positioning in SVG, 185
RemoteCommand( ), 65
remove( )
      SWF::DisplayItem module, 252
      SWF::Movie module, 248
      SWF::Sprite module, 249
RemoveObject tags (SWF), 219
Resize( ) (Image::Magick), 89
resolution, controlling for PostScript files in Image::Magick, 86
Resource Description Framework (RDF), 176
resource objects, PDF, 333
restore( ) (PDF::API2::Content), 349
restore function, 295
rgb( ), 43
rgb color combinations
      hex2rgb( ) (GD::Graph::colour), 144
      read_rgb( ) (GD::Graph::colour), 144
      rgb2hex( ) (GD::Graph::colour), 144
RGB color space
      color depth, 7
      colors, representing with numeric and hexadecimal values, 5
      converting to CMYK, 6
      unit cube, 5
right-aligned text, 265, 357
ripple effect (Image::Magick), 116
Roll( ) (Image::Magick), 89
rotate( )
      PDF::API2::Content module, 351
      SWF::DisplayItem module, 253
Rotate( ) (Image::Magick), 90
rotate180( ), 50
rotateTo( )
      SWF::DisplayItem module, 253
      SWF::Fill module, 268
rotating rectangles in SVG, 181
run( ), 167
run_mode parameter in Gimp function calls, 157

S[ Top ]
Sablotron XSLT processor, 213
Sample( ) (Image::Magick), 90
save( )
      PDF::API2::Content module, 349
      SWF::Movie module, 248
save function, 295
saveas( ) (PDF::API2), 346
Scalable Vector Graphics (see SVG file format)
scale( ), 60
      PDF::API2::Content module, 351
      SWF::DisplayItem module, 253
Scale( ) (Image::Magick), 90
scale in SWF files, 246
scalefont function, 296
scaleTo( )
      SWF::DisplayItem module, 253
      SWF::Fill module, 268
scaling images, 375
scaling mode, 392
scanline (GIF) interlacing, 12
scissors tool (Gimp), 391
Script-Fu menu (Gimp images), 412
scripting languages for Gimp, 146
security, PDF documents, 300
Segment( ) (Image::Magick), 99
select( ), 283
Select menu (Gimp images), 403
Selection object methods, ActionScript, 432
selection tools (Gimp), 389-391
      magic wand, 390
      rectangular selection tool, 390
selections, handling in Gimp, 159-162
Server Side Include (SSI), 373
servers, 363-369
      CGI scripts
            implementing with CGI.pm module, 365-367
            increasing server performance, 367-369
      chat server (Perl), communicating with SWF client, 283-285
      implementing CGI scripts with CGI.pm module
            generating HTTP headers, 366
            parsing input, 365
      Perl, launching from Gimp, 171
Set( ), 65
set( ) (GD::Graph), 118, 132
setAction( ) (SWF::Button), 260
SetAttribute( ), 65
setBackground( ) (SWF::Movie), 248
SetBackgroundColor tags (SWF), 219
setBounds( ) (SWF::TextField), 266
setBrush( ), 44, 45
setColor( )
      SWF::Text module, 264
      SWF::TextField module, 266
setColorAdd( ) (SWF::DisplayItem), 253
setColorMult( ) (SWF::DisplayItem), 253
set_connection( ), 172
setDataIndent( ), 198
setDataMode( ), 198
setDepth( ) (SWF::DisplayItem), 254
setDimension( ) (SWF::Movie), 249
setDown( ) (SWF::Button), 261
setFont( )
      SWF::Text module, 264
      SWF::TextField module, 266
setfont function, 296
setFrames( ) (SWF::Sprite), 249
setgray function, 295
setHeight( )
      SWF::Text module, 264
      SWF::TextField module, 266
setHit( ) (SWF::Button), 261
setIndentation( ) (SWF::TextField), 266
set_label_font( ) (GD::Graph), 132
setLeftFill( ) (SWF::Shape), 259
setLeftMargin( ) (SWF::TextField), 267
set_legend( ) (GD::Graph), 133
set_legend_font( ) (GD::Graph), 133
setLineSpacing( ) (SWF::TextField), 266
setLineStyle( ) (SWF::Shape), 259
setlinewidth function, 295
setMargin( ) (SWF::TextField), 267
setName( )
      SWF::DisplayItem module, 254
      SWF::TextField module, 267
setPixel( ), 43
setPT( ), 60
setRate( ) (SWF::Movie), 249
setRatio( ) (SWF::DisplayItem), 254, 271
setRightFill( ) (SWF::Shape), 259
setRightMargin( ) (SWF::TextField), 267
setScale( ) (SWF), 246
setSoundStream( ) (SWF::Movie), 249
setSpacing( ) (SWF::Text), 264
setStyle( ), 45
set_text_clr( ) (GD::Graph), 133
set_title_font( ) (GD::Graph), 133
setUp( ) (SWF::Button), 261
set_value_font( ) (GD::Graph), 132
setVersion( ) (SWF), 247
set_x_axis_font( ) (GD::Graph), 134
set_x_label_font( ) (GD::Graph), 134
set_y_axis_font( ) (GD::Graph), 134
set_y_label_font( ) (GD::Graph), 134
Seyfaie, Soheil, 239
Shade( ) (Image::Magick), 114
ShapeRecord list (SWF tags), 230
shapes
      adding to buttons, 260
      drawing rectanges within, 246
      drawing with PDF Gfx object, 334
      morphs, 269-271
      SVG tags for, 183, 187-189
            attributes, 188
            path elements, 180
      SWF files
            DefineShape3 tag, 223-233
            defining text as, 218
            defining with tags, 217
            morph shapes, 218
      SWF::Shape module, 254-259
      SWF::Shape objects, 239, 240
Sharpen( ) (Image::Magick), 114
Shear( ) (Image::Magick), 91
shearing mode, 392
Shockwave multimedia platform, 215
Shockwave/Flash (see SWF file format)
short tags (SWF), header records for, 225
show function, 296
ShowFrame tags (SWF), 219, 220
showpage operand, 298
showpage operator (PostScript), 293
signal_connect( ), 169
Signature( ) (Image::Magick), 86
signed integers in SWF, 221
      converting little-endian values to, 222
sin( ), 129, 203
size
      image attributes in Image::Magick, 86
      Image::Size module, 377
skew( ) (PDF::API2::Content), 351
skewX( ) (SWF::DisplayItem), 254
skewXTo( )
      SWF::DisplayItem module, 254
      SWF::Fill module, 268
skewY( ) (SWF::DisplayItem), 254
skewYTo( )
      SWF::DisplayItem module, 254
      SWF::Fill module, 268
slice( ), 164
slideshows, 195
      sample file, 196
      XML
            transforming to SVG, 210-214
            using XSLT, 210
smudge tool (Gimp), 395
softening sharp edges in an image, 395
Solarize( ) (Image::Magick), 115
sorted_colour_list( ), 144
sound
      adding MP3 sound to SWF files, 249
      Sound object methods, ActionScript, 433
      SWF files, defining, 218
      SWF::Sound module, 239, 272
spacing
      between characters in PDF, 355
      between characters in SWF text, 264
      between words in PDF text, 357
      lines in text fields, 266
special effects (see effects)
spirals
      logarithmic, using the Golden Mean, 255
      PDF, drawing in, 307
      PostScript, drawing in, 294
Spread( ) (Image::Magick), 115
Sprites
      ActionScript commands for, 250
      document assembly with XML, 280-283
      definition tags in SWF files, 219
      Dictionaries and Display Lists, 220
      SWF::Sprite module, 239
            methods, 249
SRC attribute (HTML IMG tags), 371-374
SSI (Server Side Include), 373
stack-based postfix notation in PDF, 306
stamping pages of existing PDF document, 341-343
standalone documents (SVG), viewing, 178
standalone scripts, 150
      Gimp-Perl, 171
standard paper sizes, listing of, 293
star shape, circle that morphs into, 276
start tags, XML, 177
start_tag( ), 281
STDOUT
      binary image file, printing to, 372
      printing movie to, 248
Stein, Lincoln, 365
stock graph with mixed chart types (example), 120-122
StraightEdge Records (SWF tags), 232
Stream dictionary object in PDF, 303
Stream object in PDF, 304
string( ), 54
string assignment operator (.=), 164
stringFT( ), 29, 55
stringify( ) (PDF::API2), 334, 347
strings
      adding to text, 263
      adding to text fields, 265
      converting between hex and binary, 229
      fonts, 53
            bitmapped GD fonts, 53
            standard GD fonts, 53
      String object methods, ActionScript, 433
      translation into different languages, 150
stringUp( ), 54
stroke( ) (PDF::API2::Gfx), 355
stroke attributes, SVG shape elements, 188
stroke function, 295
strokecolor( ) (PDF::API2::Content), 352
stroking
      line styles for shapes, 259
      PDF graphics path, 309
structural comments, PostScript, 297
structural elements, SVG, 180
structural objects, PDF, 333
structural tags (SVG), 181-183
structuring conventions, PostScript documents, 296-299
StyleChangeRecord (SWF tags), 230
styles, 44
stylesheets, 211
      HTML 4.0, specification in, 377
      SVG, use in, 176
      XSLT (see XSLT)
subroutines, 152
      apply_tint( ), 160
      dereference( ), 197
subtractive color spaces, 5
      CMYK (Cyan, Magenta, Yellow, and Black), 6
suppress_angle attribute, 124
SVG file format, 3, 175-194, 195-214
      animation, 201-208
            bouncing ball (example), 202
      document structure, 176
      MIME type, 364
      path, 104
      presentations, 195-201
      rendering a document tree, 179
      scripting with JavaScript, 204-208
      serving compressed files, 179
      tags, 180-194
            linking, 193
            shapes, paths, and images, 183-189
            structural, 181-183
            text elements, 189-193
      Tiny and Basic standards for mobile devices, 176
      transformation with XSLT and Perl, 210-214
      Unicode text in images, 208-210
      viewing documents, 176-179
            embedded as inline images in XHTML, 178
            embedded in HTML as image reference, 178
            standalone documents, 178
            views and coordinate systems, 179
      XML images with, 17-20
      XML structure and, 177
SWF file format, 3, 17, 20, 215-237
      control tags, 219
      data types, 221-223
            bit fields, 222
            coordinate system, 223
            integers, 221
      definition tags, 217-219
            bitmaps, 218
            buttons, 218
            fields, structure of, 223-233
            morph shapes, 218
            shapes, 217
            sounds, 218
            Sprites, 219
            text and fonts, 218
      Dictionary and Display List, 219
      Font Definition Block, 267
      history of, 215
      Macromedia Flash platform vs., 216
      MIME type, 364
      Ming API, 20
      modules for Perl interface to Ming, 239
      parsing with Perl, 233-237
      tags, 216
      (see also Ming)
SWF module, 246
SWF::Action module, 272
SWF::Bitmap module, 262
SWF::Button module, 259-261
SWF::DisplayItem module, 250-254
      animation using, 251
      methods, 252-254
SWF::Fill module, 268
SWF::Font module, 267
SWF::Gradient module, 269
SWF::Morph module, 269-271
SWF::Movie module, 239, 247
      creating new Movie objects, 243
SWF::MovieClip module, 249
SWF::Movie::setSoundStream( ), 272
SWF::Shape module, 254-259
SWF::Shape::addFill( ), 268
SWF::Shape::drawGlyph( ), 263
SWF::Sound module, 272
SWF::Sprite module, 249
SWF::Text module, 263
SWF::TextField module, 265-267
      chat client, use in, 285
Swirl( ) (Image::Magick), 115
SWT Generator template file, 267

T[ Top ]
tag header (SWF), 224
Tagged Image File Format, 11
tags
      HTML
            image, 371
            IMG and OBJECT, 371
            SVG images, embedding, 178
      SVG, 180-194
            linking, 193
            shape, 187-189
            shapes, paths, and images, 183-189
            structural, 181-183
            text elements, 189-193
      SWF files, 216, 220
            control tags, 219
            definition tags, 217-219, 223-233
            parsing with Perl, 233-237
tags
      XML, 177
            start and end, 281
            SVG elements, 18
            SVG presentation, 198
      (see also elements)
<template> element (XSLT), 211
templates
      SWT Generator template file, 267
      XSLT, 211
            slide elements, converting to SVG, 213
text
      adding to Image::Magick images, 101
      drawing, hello world (example), 29
      Gimp text tool, 392
      graph labels, setting fonts for, 134
      graph titles, setting fonts for, 133
      in graphs, setting colors, 133
      PDF drawing operators, 310-313
      PDF Text object, 355-357
      PostScript::TextBlock module, 315
      SVG elements for, 180, 189-193
            listing of basic, 191
            path, rendering on, 190
            rendering text in an image, 189
      SWF files, defining fonts for, 218
      SWF::Text module, 239, 263
      SWF::TextField module, 265-267
            chat client, use in, 285
      Text objects, PDF, 333-335
      Text primitive for Draw( ) (Image::Magick), 105
      text-only browsers, 379-383
      Unicode, in SVG images, 208-210
text( )
      PDF::API2::Page module, 348
      PDF::API2::Text module, 356
<text> element
      SVG, 189
            Unicode characters in, 190
      XML, 213
text grid script (example), 150-154
text_center( ) (PDF::API2::Text), 357
text_get_extents( ), 154
text_grid routine, 152
textln( ) (PDF::API2::Text), 357
<textPath> tags, SVG, 182, 190
Text::PDF module, 313
text_right( ) (PDF::API2::Text), 357
textual elements (see text, SVG elements for)
Texture( ) (Image::Magick), 115
text_utf8( ) (PDF::API2::Text), 357
Threshold( ) (Image::Magick), 116
thumbnail images, 70-74
TIFF file format, 11
tiles, 44
timeline for Astral Trespassers game (example), 242
tint
      Gimp plug-in script for applying, 160
      in PostScript, 295
            lines and fills, 328
tokens in PDF documents, delimiting, 301
toolbox, Gimp, 389-395
      airbrush tool, 394
      blend tool, 393
      bucket fill tool, 392
      clone tool, 394
      color picker tool, 392
      convolver tool, 395
      crop tool, 391
      dodge and burn tool, 395
      eraser tool, 394
      flip tool, 392
      ink tool, 395
      magnifying glass tool, 391
      measure tool, 395
      menu hierarchy, 395-401
            File menu, 395
            Xtns menu, 398
      move tool, 391
      paintbrush tool, 394
      pencil tool, 394
      selection tools, 389-391
            Bezier selection tool, 391
            elliptical selection, 390
            hand-drawn selection tool, 390
            intelligent scissors, 391
            magic wand, 390
            rectangular selection, 390
      smudge tool, 395
      text tool, 392
      transform tool, 392
Tools menu (Gimp images), 410
toPt( ), 60
trailers in PDF files, 306
transform( ), 60, 341
      PDF::API2::Content module, 352
transform tool (Gimp), 392
transformations
      morph shapes in SWF, 269-271
      SVG elements, 186
            with XSLT and Perl, 210-214
      XML files, 197
translate( ) (PDF::API2::Content), 352
transparency, 9
      alpha levels, 9
      attributes for (Image::Magick), 95-97
      gdTransparent constant, 46
      Image::Magick methods for, 95
            MatteFloodfill( ), 98
            Transparent( ), 99
transparent( ), 44
Transparent( ) (Image::Magick), 95, 99
trigonometric functions overloaded by PDL, 163
Trim( ) (Image::Magick), 90, 91
trimbox( ) (PDF::API2::Page), 349
trueColor( ), 27, 36, 44
truecolor images, 7
      converting to 16 colors, with and without dithering, 8
      creating from PNG files, 37
      saving as pseudocolor images, 7
trueColorToPalette( ), 27, 44
TrueType fonts, 26
      drawing string onto image, 55
      FreeType font rendering library for, 26
<tspan> tags, SVG, 189
      anchors and, 194
ttfont( ) (PDF::API2), 347
twips, 223
      LINESTYLE element, width in, 228
      RECT structure fields, 226
two's complement notation, 222
Type attribute in PDF dictionaries, 302

U[ Top ]
undef, destroying image objects, 68
Undo and Redo commands, Gimp, 160
Unicode
      in SVG <text> element, 190
      text in SVG images, 208-210
      UTF-8 character encoding in PDF, 357
units, SVG, 180
unpack( )
      converting binary structure to strings of 1's and 0's, 223
      converting little-endian binary values to integers, 222
unsigned integers (in SWF), 221
      converting from bit values in SWF, 222
      reading from SWF tags, 237
update( ) (PDF::API2), 341, 347
updating drawables, 161
URLs
      browser requests for images from servers, 364
      indicating for images with SRC attribute, 371
use function, 365
user agents
      HTTP USER AGENT, 363
      for SVG, 176
user coordinate system in SVG, 180
user input, tracking with buttons, 259

V[ Top ]
<value-of> element (XSLT), 212
vector file formats, 3, 17-20
      PostScript, drawing with Elements module, 328
      PostScript, rendering in, 296
      SVG, 175-194
            XML images with, 17-20
      SWF, 218
vectors, RBG colors represented as, 6
Verbruggen, Martien, 117
versions
      PostScript Document Structuring Conventions, 297
      SWF, 247
vertical lines, indicating for SWF shapes, 232
vertices( ), 61
View menu (Gimp images), 405
viewer, PostScript, 291
viewers
      Adobe, for SVG files, 177
      Apache Batik, for SVG documents, 177
      GhostView PostScript viewer, 315
viewing SVG documents, 176-179
views in SVG, 179
Visual Image Directory (thumbnails), 70
VSPACE tags (HTML), 377

W[ Top ]
W3C (World Wide Web Consortium), 175
      SVG Test Suite, 176
warning codes, Image::Magick, 69
Wave( ) (Image::Magick), 116
wbmp( ), 40
WBMP (Wireless Bitmap) and GD files, 27
web browsers (see browsers)
web servers, 363
      (see also servers)
web-safe palette (216-color), converting image colormap to, 98
whitespace
      delimiting tokens in PDF documents, 301
      line spacing in SWF::TextField module, 266
      spacing attributes in HTML, 377
      between words in PDF text, 357
width
      bitmaps, 263
      bounding box for text field, 266
      lines in PDF document contents, 351
width
      setting for movies, 249
      text strings, 264
      WIDTH attribute (IMG tag), 375-377
width( ), 53, 55
Win32 systems, using Gimp, 146
Wireless bitmap (WBMP), 40
wordspace( ) (PDF::API2::Text), 357
World Wide Web Consortium (W3C), 175
      HTML 4.0 specification, ALT tag, 379
wrapper script generating HTML page, 372
Write( ), 66, 68
      Image::Magick module, 75, 79, 80
      PostScript::Document module, 328
      PostScript::Elements module, 332
      PostScript::TextBlock module, 321, 324
write( ), 370
write_ready( ), 370
writing images, 35

X[ Top ]
XBM (black and white X-bitmaps), 27
XHTML, SVG images in, 17, 176, 178
XLink
      importing namespace into SVG document, 193
      SVG, using with, 176
XML, 177
      buffering output, 198
      converting source document to SVG, 212
      elements, 177
      images with SVG format, 17-20
            tags for SVG elements, 18
      Perl modules, 19
      Sprite-based document assembly with, 280-283
      Stylesheet Language Transformations (see XSLT)
      transforming files, 197
      XML object, ActionScript
            methods, 434
            properties, 435
      XMLSocket object properties, ActionScript, 435
      (see also SVG file format)
xmlns namespace attribute, 191
XML::Parser module, 280
XML::Simple module, 197
      PDF address label document, use in, 337
XMLSocket class, 285
XML::Writer module, 197
      characters( ), 198
      endTag( ), 198
      startTag( ) (XML::Writer), 198
      SVG animation with JavaScript, 205
XPM file format (pixmaps), 27
      creating images from, 36
      newFromXbm( ) method and, 38
XSL (Extensible Stylesheet Language), 211
      SVG documents, use with, 176
XSLT
      Sablotron processor, 213
      specification, web site for, 210
      SVG, using with, 176
      transforming SVG, 210-214

Z[ Top ]
zlib compression library, 26
Zoom( ) (Image::Magick), 91


Return to Perl Graphics Programming