1GD(3)                 User Contributed Perl Documentation                GD(3)
2
3
4

NAME

6       PDL::IO::GD - Interface to the GD image library.
7

SYNOPSIS

9        my $pdl = sequence(byte, 30, 30);
10        write_png($pdl, load_lut($lutfile), "test.png");
11
12        write_true_png(sequence(100, 100, 3), "test_true.png");
13
14        my $image = read_png("test.png");
15
16        my $image = read_true_png("test_true_read.png");
17        write_true_png($image, "test_true_read.out.png");
18
19        my $lut = read_png_lut("test.png");
20
21        $pdl = sequence(byte, 30, 30);
22        write_png_ex($pdl, load_lut($lutfile), "test_nocomp.png", 0);
23        write_png_ex($pdl, load_lut($lutfile), "test_bestcomp1.png", 9);
24        write_png_best($pdl, load_lut($lutfile), "test_bestcomp2.png");
25
26        $pdl = sequence(100, 100, 3);
27        write_true_png_ex($pdl, "test_true_nocomp.png", 0);
28        write_true_png_ex($pdl, "test_true_bestcomp1.png", 9);
29        write_true_png_best($pdl, "test_true_bestcomp2.png");
30
31        recompress_png_best("test_recomp_best.png");
32

DESCRIPTION

34       This is the "General Interface" for the PDL::IO::GD library, and is
35       actually several years old at this point (read: stable). If you're
36       feeling frisky, try the new OO interface described below.
37
38       The general version just provides several image IO utility functions
39       you can use with piddle variables. It's deceptively useful, however.
40

FUNCTIONS

42   write_png
43         Signature: (byte img(x,y); byte lut(i,j); char* filename)
44
45       Writes a 2-d PDL varable out to a PNG file, using the supplied color
46       look-up-table piddle (hereafter referred to as a LUT).
47
48       The LUT contains a line for each value 0-255 with a corresponding R, G,
49       and B value.
50
51       write_png does not process bad values.  It will set the bad-value flag
52       of all output piddles if the flag is set for any of the input piddles.
53
54   write_png_ex
55         Signature: (img(x,y); lut(i,j); char* filename; int level)
56
57       Same as write_png(), except you can specify the compression level (0-9)
58       as the last arguement.
59
60       write_png_ex does not process bad values.  It will set the bad-value
61       flag of all output piddles if the flag is set for any of the input
62       piddles.
63
64   write_true_png
65         Signature: (img(x,y,z); char* filename)
66
67       Writes an (x, y, z(3)) PDL varable out to a PNG file, using a true
68       color format.
69
70       This means a larger file on disk, but can contain more than 256 colors.
71
72       write_true_png does not process bad values.  It will set the bad-value
73       flag of all output piddles if the flag is set for any of the input
74       piddles.
75
76   write_true_png_ex
77         Signature: (img(x,y,z); char* filename; int level)
78
79       Same as write_true_png(), except you can specify the compression level
80       (0-9) as the last arguement.
81
82       write_true_png_ex does not process bad values.  It will set the bad-
83       value flag of all output piddles if the flag is set for any of the
84       input piddles.
85
86   write_png_best( $img(piddle), $lut(piddle), $filename )
87       Like write_png(), but it assumes the best PNG compression (9).
88
89   write_true_png_best( $img(piddle), $filename )
90       Like write_true_png(), but it assumes the best PNG compression (9).
91
92   load_lut( $filename )
93       Loads a color look up table from an ASCII file. returns a piddle
94
95   read_png( $filename )
96       Reads a (palette) PNG image into a (new) PDL variable.
97
98   read_png_true( $filename )
99       Reads a true color PNG image into a (new) PDL variable.
100
101   my $lut = read_png_lut( $filename )
102       Reads a color LUT from an already-existing palette PNG file.
103

OO INTERFACE

105       Object Oriented interface to the GD image library.
106

SYNOPSIS

108        # Open an existing file:
109        #
110        my $gd = PDL::IO::GD->new( { filename => "test.png" } );
111
112        # Query the x and y sizes:
113        my $x = $gd->SX();
114        my $y = $gd->SY();
115
116        # Grab the PDL of the data:
117        my $pdl = $gd->to_pdl();
118
119        # Kill this thing:
120        $gd->DESTROY();
121
122        # Create a new object:
123        #
124        my $im = PDL::IO::GD->new( { x => 300, y => 300 } );
125
126        # Allocate some colors:
127        #
128        my $black = $im->ColorAllocate( 0, 0, 0 );
129        my $red = $im->ColorAllocate( 255, 0, 0 );
130        my $green = $im->ColorAllocate( 0, 255, 0 );
131        my $blue = $im->ColorAllocate( 0, 0, 255 );
132
133        # Draw a rectangle:
134        $im->Rectangle( 10, 10, 290, 290, $red );
135
136        # Add some text:
137        $im->String( gdFontGetLarge(), 20, 20, "Test Large Font!", $green );
138
139        # Write the output file:
140        $im->write_Png( "test2.png" );
141

DESCRIPTION

143       This is the Object-Oriented interface from PDL to the GD image library.
144
145       See <http://www.boutell.com/gd/> for more information on the GD library
146       and how it works.
147
148   IMPLEMENTATION NOTES
149       Surprisingly enough, this interface has nothing to do with the other
150       Perl->GD interface module, aka 'GD' (as in 'use GD;'). This is done
151       from scratch over the years.
152
153       Requires at least version 2.0.22 of the GD library, but it's only been
154       thoroughly tested with gd-2.0.33, so it would be best to use that. The
155       2.0.22 requirement has to do with a change in GD's font handling
156       functions, so if you don't use those, then don't worry about it.
157
158       I should also add, the statement about "thoroughly tested" above is
159       mostly a joke. This OO interface is very young, and it has barely been
160       tested at all, so if something breaks, email me and I'll get it fixed
161       ASAP (for me).
162
163       Functions that manipulate and query the image objects generally have a
164       'gdImage' prefix on the function names (ex: gdImageString()). I've
165       created aliases here for all of those member functions so you don't
166       have to keep typing 'gdImage' in your code, but the long version are in
167       there as well.
168

FUNCTIONS

170   new
171       Creates a new PDL::IO::GD object.
172
173       Accepts an anonymous hash describing how to create it. Use curly braces
174       here!
175
176       If the hash has:
177
178        pdl => $pdl_var (lut => $lut_piddle)
179           Then a new GD is created from that PDL variable.
180
181        filename => $file
182           Then a new GD is created from the image file.
183
184        x => $num, y => $num
185           Then a new GD is created as a palette image, with size x, y
186
187        x => $num, y => $num, true_color => 1
188           Then a new GD is created as a true color image, with size x, y
189
190        data => $scalar (type => $typename)
191           Then a new GD is created from the file data stored in $scalar.
192           If no type is given, then it will try to guess the type of the data, but
193               this will not work for WBMP and gd image types. For those types, you
194               _must_ specify the type of the data, or the operation will fail.
195           Valid types are: 'jpg', 'png', 'gif', 'gd', 'gd2', 'wbmp'.
196
197       Example:
198
199        my $gd = PDL::IO::GD->new({ pdl => $pdl_var });
200
201        my $gd = PDL::IO::GD->new({ pdl => $pdl_var, lut => $lut_piddle });
202
203        my $gd = PDL::IO::GD->new({ filename => "image.png" });
204
205        my $gd = PDL::IO::GD->new({ x => 100, y => 100 });
206
207        my $gd = PDL::IO::GD->new({ x => 100, y => 100, true_color => 1 });
208
209        my $gd = PDL::IO::GD->new({ data => $imageData });
210
211        my $gd = PDL::IO::GD->new({ data => $imageData, type => 'wbmp' });
212
213   to_pdl
214       When you're done playing with your GDImage and want a piddle back, use
215       this function to return one.
216
217   apply_lut( $lut(piddle) )
218       Does a $im->ColorAllocate() for and entire LUT piddle at once.
219
220       The LUT piddle format is the same as for the general interface above.
221
222   WARNING:
223       All of the docs below this point are auto-generated (not to mention the
224       actual code), so read with a grain of salt, and always check the main
225       GD documentation about how that function works and what it does.
226
227   write_Png
228       $image->write_Png( $filename )
229
230   write_PngEx
231       $image->write_PngEx( $filename, $level )
232
233   write_WBMP
234       $image->write_WBMP( $fg, $filename )
235
236   write_Jpeg
237       $image->write_Jpeg( $filename, $quality )
238
239   write_Gd
240       $image->write_Gd( $filename )
241
242   write_Gd2
243       $image->write_Gd2( $filename, $cs, $fmt )
244
245   write_Gif
246       $image->write_Gif( $filename )
247
248   Destroy
249       $image->Destroy(  )
250
251       Alias for gdImageDestroy.
252
253   gdImageDestroy
254       $image->gdImageDestroy(  )
255
256   SetPixel
257       $image->SetPixel( $x, $y, $color )
258
259       Alias for gdImageSetPixel.
260
261   gdImageSetPixel
262       $image->gdImageSetPixel( $x, $y, $color )
263
264   GetPixel
265       $image->GetPixel( $x, $y )
266
267       Alias for gdImageGetPixel.
268
269   gdImageGetPixel
270       $image->gdImageGetPixel( $x, $y )
271
272   AABlend
273       $image->AABlend(  )
274
275       Alias for gdImageAABlend.
276
277   gdImageAABlend
278       $image->gdImageAABlend(  )
279
280   Line
281       $image->Line( $x1, $y1, $x2, $y2, $color )
282
283       Alias for gdImageLine.
284
285   gdImageLine
286       $image->gdImageLine( $x1, $y1, $x2, $y2, $color )
287
288   DashedLine
289       $image->DashedLine( $x1, $y1, $x2, $y2, $color )
290
291       Alias for gdImageDashedLine.
292
293   gdImageDashedLine
294       $image->gdImageDashedLine( $x1, $y1, $x2, $y2, $color )
295
296   Rectangle
297       $image->Rectangle( $x1, $y1, $x2, $y2, $color )
298
299       Alias for gdImageRectangle.
300
301   gdImageRectangle
302       $image->gdImageRectangle( $x1, $y1, $x2, $y2, $color )
303
304   FilledRectangle
305       $image->FilledRectangle( $x1, $y1, $x2, $y2, $color )
306
307       Alias for gdImageFilledRectangle.
308
309   gdImageFilledRectangle
310       $image->gdImageFilledRectangle( $x1, $y1, $x2, $y2, $color )
311
312   SetClip
313       $image->SetClip( $x1, $y1, $x2, $y2 )
314
315       Alias for gdImageSetClip.
316
317   gdImageSetClip
318       $image->gdImageSetClip( $x1, $y1, $x2, $y2 )
319
320   GetClip
321       $image->GetClip( $x1P, $y1P, $x2P, $y2P )
322
323       Alias for gdImageGetClip.
324
325   gdImageGetClip
326       $image->gdImageGetClip( $x1P, $y1P, $x2P, $y2P )
327
328   BoundsSafe
329       $image->BoundsSafe( $x, $y )
330
331       Alias for gdImageBoundsSafe.
332
333   gdImageBoundsSafe
334       $image->gdImageBoundsSafe( $x, $y )
335
336   Char
337       $image->Char( $f, $x, $y, $c, $color )
338
339       Alias for gdImageChar.
340
341   gdImageChar
342       $image->gdImageChar( $f, $x, $y, $c, $color )
343
344   CharUp
345       $image->CharUp( $f, $x, $y, $c, $color )
346
347       Alias for gdImageCharUp.
348
349   gdImageCharUp
350       $image->gdImageCharUp( $f, $x, $y, $c, $color )
351
352   String
353       $image->String( $f, $x, $y, $s, $color )
354
355       Alias for gdImageString.
356
357   gdImageString
358       $image->gdImageString( $f, $x, $y, $s, $color )
359
360   StringUp
361       $image->StringUp( $f, $x, $y, $s, $color )
362
363       Alias for gdImageStringUp.
364
365   gdImageStringUp
366       $image->gdImageStringUp( $f, $x, $y, $s, $color )
367
368   String16
369       $image->String16( $f, $x, $y, $s, $color )
370
371       Alias for gdImageString16.
372
373   gdImageString16
374       $image->gdImageString16( $f, $x, $y, $s, $color )
375
376   StringUp16
377       $image->StringUp16( $f, $x, $y, $s, $color )
378
379       Alias for gdImageStringUp16.
380
381   gdImageStringUp16
382       $image->gdImageStringUp16( $f, $x, $y, $s, $color )
383
384   Polygon
385       $image->Polygon( $p, $n, $c )
386
387       Alias for gdImagePolygon.
388
389   gdImagePolygon
390       $image->gdImagePolygon( $p, $n, $c )
391
392   FilledPolygon
393       $image->FilledPolygon( $p, $n, $c )
394
395       Alias for gdImageFilledPolygon.
396
397   gdImageFilledPolygon
398       $image->gdImageFilledPolygon( $p, $n, $c )
399
400   ColorAllocate
401       $image->ColorAllocate( $r, $g, $b )
402
403       Alias for gdImageColorAllocate.
404
405   gdImageColorAllocate
406       $image->gdImageColorAllocate( $r, $g, $b )
407
408   ColorAllocateAlpha
409       $image->ColorAllocateAlpha( $r, $g, $b, $a )
410
411       Alias for gdImageColorAllocateAlpha.
412
413   gdImageColorAllocateAlpha
414       $image->gdImageColorAllocateAlpha( $r, $g, $b, $a )
415
416   ColorClosest
417       $image->ColorClosest( $r, $g, $b )
418
419       Alias for gdImageColorClosest.
420
421   gdImageColorClosest
422       $image->gdImageColorClosest( $r, $g, $b )
423
424   ColorClosestAlpha
425       $image->ColorClosestAlpha( $r, $g, $b, $a )
426
427       Alias for gdImageColorClosestAlpha.
428
429   gdImageColorClosestAlpha
430       $image->gdImageColorClosestAlpha( $r, $g, $b, $a )
431
432   ColorClosestHWB
433       $image->ColorClosestHWB( $r, $g, $b )
434
435       Alias for gdImageColorClosestHWB.
436
437   gdImageColorClosestHWB
438       $image->gdImageColorClosestHWB( $r, $g, $b )
439
440   ColorExact
441       $image->ColorExact( $r, $g, $b )
442
443       Alias for gdImageColorExact.
444
445   gdImageColorExact
446       $image->gdImageColorExact( $r, $g, $b )
447
448   ColorExactAlpha
449       $image->ColorExactAlpha( $r, $g, $b, $a )
450
451       Alias for gdImageColorExactAlpha.
452
453   gdImageColorExactAlpha
454       $image->gdImageColorExactAlpha( $r, $g, $b, $a )
455
456   ColorResolve
457       $image->ColorResolve( $r, $g, $b )
458
459       Alias for gdImageColorResolve.
460
461   gdImageColorResolve
462       $image->gdImageColorResolve( $r, $g, $b )
463
464   ColorResolveAlpha
465       $image->ColorResolveAlpha( $r, $g, $b, $a )
466
467       Alias for gdImageColorResolveAlpha.
468
469   gdImageColorResolveAlpha
470       $image->gdImageColorResolveAlpha( $r, $g, $b, $a )
471
472   ColorDeallocate
473       $image->ColorDeallocate( $color )
474
475       Alias for gdImageColorDeallocate.
476
477   gdImageColorDeallocate
478       $image->gdImageColorDeallocate( $color )
479
480   TrueColorToPalette
481       $image->TrueColorToPalette( $ditherFlag, $colorsWanted )
482
483       Alias for gdImageTrueColorToPalette.
484
485   gdImageTrueColorToPalette
486       $image->gdImageTrueColorToPalette( $ditherFlag, $colorsWanted )
487
488   ColorTransparent
489       $image->ColorTransparent( $color )
490
491       Alias for gdImageColorTransparent.
492
493   gdImageColorTransparent
494       $image->gdImageColorTransparent( $color )
495
496   FilledArc
497       $image->FilledArc( $cx, $cy, $w, $h, $s, $e, $color, $style )
498
499       Alias for gdImageFilledArc.
500
501   gdImageFilledArc
502       $image->gdImageFilledArc( $cx, $cy, $w, $h, $s, $e, $color, $style )
503
504   Arc
505       $image->Arc( $cx, $cy, $w, $h, $s, $e, $color )
506
507       Alias for gdImageArc.
508
509   gdImageArc
510       $image->gdImageArc( $cx, $cy, $w, $h, $s, $e, $color )
511
512   FilledEllipse
513       $image->FilledEllipse( $cx, $cy, $w, $h, $color )
514
515       Alias for gdImageFilledEllipse.
516
517   gdImageFilledEllipse
518       $image->gdImageFilledEllipse( $cx, $cy, $w, $h, $color )
519
520   FillToBorder
521       $image->FillToBorder( $x, $y, $border, $color )
522
523       Alias for gdImageFillToBorder.
524
525   gdImageFillToBorder
526       $image->gdImageFillToBorder( $x, $y, $border, $color )
527
528   Fill
529       $image->Fill( $x, $y, $color )
530
531       Alias for gdImageFill.
532
533   gdImageFill
534       $image->gdImageFill( $x, $y, $color )
535
536   CopyRotated
537       $image->CopyRotated( $dstX, $dstY, $srcX, $srcY, $srcWidth, $srcHeight,
538       $angle )
539
540       Alias for gdImageCopyRotated.
541
542   gdImageCopyRotated
543       $image->gdImageCopyRotated( $dstX, $dstY, $srcX, $srcY, $srcWidth,
544       $srcHeight, $angle )
545
546   SetBrush
547       $image->SetBrush(  )
548
549       Alias for gdImageSetBrush.
550
551   gdImageSetBrush
552       $image->gdImageSetBrush(  )
553
554   SetTile
555       $image->SetTile(  )
556
557       Alias for gdImageSetTile.
558
559   gdImageSetTile
560       $image->gdImageSetTile(  )
561
562   SetAntiAliased
563       $image->SetAntiAliased( $c )
564
565       Alias for gdImageSetAntiAliased.
566
567   gdImageSetAntiAliased
568       $image->gdImageSetAntiAliased( $c )
569
570   SetAntiAliasedDontBlend
571       $image->SetAntiAliasedDontBlend( $c, $dont_blend )
572
573       Alias for gdImageSetAntiAliasedDontBlend.
574
575   gdImageSetAntiAliasedDontBlend
576       $image->gdImageSetAntiAliasedDontBlend( $c, $dont_blend )
577
578   SetStyle
579       $image->SetStyle( $style, $noOfPixels )
580
581       Alias for gdImageSetStyle.
582
583   gdImageSetStyle
584       $image->gdImageSetStyle( $style, $noOfPixels )
585
586   SetThickness
587       $image->SetThickness( $thickness )
588
589       Alias for gdImageSetThickness.
590
591   gdImageSetThickness
592       $image->gdImageSetThickness( $thickness )
593
594   Interlace
595       $image->Interlace( $interlaceArg )
596
597       Alias for gdImageInterlace.
598
599   gdImageInterlace
600       $image->gdImageInterlace( $interlaceArg )
601
602   AlphaBlending
603       $image->AlphaBlending( $alphaBlendingArg )
604
605       Alias for gdImageAlphaBlending.
606
607   gdImageAlphaBlending
608       $image->gdImageAlphaBlending( $alphaBlendingArg )
609
610   SaveAlpha
611       $image->SaveAlpha( $saveAlphaArg )
612
613       Alias for gdImageSaveAlpha.
614
615   gdImageSaveAlpha
616       $image->gdImageSaveAlpha( $saveAlphaArg )
617
618   TrueColor
619       $image->TrueColor(  )
620
621       Alias for gdImageTrueColor.
622
623   gdImageTrueColor
624       $image->gdImageTrueColor(  )
625
626   ColorsTotal
627       $image->ColorsTotal(  )
628
629       Alias for gdImageColorsTotal.
630
631   gdImageColorsTotal
632       $image->gdImageColorsTotal(  )
633
634   Red
635       $image->Red( $c )
636
637       Alias for gdImageRed.
638
639   gdImageRed
640       $image->gdImageRed( $c )
641
642   Green
643       $image->Green( $c )
644
645       Alias for gdImageGreen.
646
647   gdImageGreen
648       $image->gdImageGreen( $c )
649
650   Blue
651       $image->Blue( $c )
652
653       Alias for gdImageBlue.
654
655   gdImageBlue
656       $image->gdImageBlue( $c )
657
658   Alpha
659       $image->Alpha( $c )
660
661       Alias for gdImageAlpha.
662
663   gdImageAlpha
664       $image->gdImageAlpha( $c )
665
666   GetTransparent
667       $image->GetTransparent(  )
668
669       Alias for gdImageGetTransparent.
670
671   gdImageGetTransparent
672       $image->gdImageGetTransparent(  )
673
674   GetInterlaced
675       $image->GetInterlaced(  )
676
677       Alias for gdImageGetInterlaced.
678
679   gdImageGetInterlaced
680       $image->gdImageGetInterlaced(  )
681
682   SX
683       $image->SX(  )
684
685       Alias for gdImageSX.
686
687   gdImageSX
688       $image->gdImageSX(  )
689
690   SY
691       $image->SY(  )
692
693       Alias for gdImageSY.
694
695   gdImageSY
696       $image->gdImageSY(  )
697
698   ColorAllocates
699       $image->ColorAllocates( $r(pdl), $g(pdl), $b(pdl) )
700
701       Alias for gdImageColorAllocates.
702
703   gdImageColorAllocates
704       $image->gdImageColorAllocates( $r(pdl), $g(pdl), $b(pdl) )
705
706   ColorAllocateAlphas
707       $image->ColorAllocateAlphas( $r(pdl), $g(pdl), $b(pdl), $a(pdl) )
708
709       Alias for gdImageColorAllocateAlphas.
710
711   gdImageColorAllocateAlphas
712       $image->gdImageColorAllocateAlphas( $r(pdl), $g(pdl), $b(pdl), $a(pdl)
713       )
714
715   SetPixels
716       $image->SetPixels( $x(pdl), $y(pdl), $color(pdl) )
717
718       Alias for gdImageSetPixels.
719
720   gdImageSetPixels
721       $image->gdImageSetPixels( $x(pdl), $y(pdl), $color(pdl) )
722
723   Lines
724       $image->Lines( $x1(pdl), $y1(pdl), $x2(pdl), $y2(pdl), $color(pdl) )
725
726       Alias for gdImageLines.
727
728   gdImageLines
729       $image->gdImageLines( $x1(pdl), $y1(pdl), $x2(pdl), $y2(pdl),
730       $color(pdl) )
731
732   DashedLines
733       $image->DashedLines( $x1(pdl), $y1(pdl), $x2(pdl), $y2(pdl),
734       $color(pdl) )
735
736       Alias for gdImageDashedLines.
737
738   gdImageDashedLines
739       $image->gdImageDashedLines( $x1(pdl), $y1(pdl), $x2(pdl), $y2(pdl),
740       $color(pdl) )
741
742   Rectangles
743       $image->Rectangles( $x1(pdl), $y1(pdl), $x2(pdl), $y2(pdl), $color(pdl)
744       )
745
746       Alias for gdImageRectangles.
747
748   gdImageRectangles
749       $image->gdImageRectangles( $x1(pdl), $y1(pdl), $x2(pdl), $y2(pdl),
750       $color(pdl) )
751
752   FilledRectangles
753       $image->FilledRectangles( $x1(pdl), $y1(pdl), $x2(pdl), $y2(pdl),
754       $color(pdl) )
755
756       Alias for gdImageFilledRectangles.
757
758   gdImageFilledRectangles
759       $image->gdImageFilledRectangles( $x1(pdl), $y1(pdl), $x2(pdl),
760       $y2(pdl), $color(pdl) )
761
762   FilledArcs
763       $image->FilledArcs( $cx(pdl), $cy(pdl), $w(pdl), $h(pdl), $s(pdl),
764       $e(pdl), $color(pdl), $style(pdl) )
765
766       Alias for gdImageFilledArcs.
767
768   gdImageFilledArcs
769       $image->gdImageFilledArcs( $cx(pdl), $cy(pdl), $w(pdl), $h(pdl),
770       $s(pdl), $e(pdl), $color(pdl), $style(pdl) )
771
772   Arcs
773       $image->Arcs( $cx(pdl), $cy(pdl), $w(pdl), $h(pdl), $s(pdl), $e(pdl),
774       $color(pdl) )
775
776       Alias for gdImageArcs.
777
778   gdImageArcs
779       $image->gdImageArcs( $cx(pdl), $cy(pdl), $w(pdl), $h(pdl), $s(pdl),
780       $e(pdl), $color(pdl) )
781
782   FilledEllipses
783       $image->FilledEllipses( $cx(pdl), $cy(pdl), $w(pdl), $h(pdl),
784       $color(pdl) )
785
786       Alias for gdImageFilledEllipses.
787
788   gdImageFilledEllipses
789       $image->gdImageFilledEllipses( $cx(pdl), $cy(pdl), $w(pdl), $h(pdl),
790       $color(pdl) )
791

CLASS FUNCTIONS

793   gdImageCopy
794       gdImageCopy ( $dst(PDL::IO::GD), $src(PDL::IO::GD), $dstX, $dstY,
795       $srcX, $srcY, $w, $h )
796
797   gdImageCopyMerge
798       gdImageCopyMerge ( $dst(PDL::IO::GD), $src(PDL::IO::GD), $dstX, $dstY,
799       $srcX, $srcY, $w, $h, $pct )
800
801   gdImageCopyMergeGray
802       gdImageCopyMergeGray ( $dst(PDL::IO::GD), $src(PDL::IO::GD), $dstX,
803       $dstY, $srcX, $srcY, $w, $h, $pct )
804
805   gdImageCopyResized
806       gdImageCopyResized ( $dst(PDL::IO::GD), $src(PDL::IO::GD), $dstX,
807       $dstY, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH )
808
809   gdImageCopyResampled
810       gdImageCopyResampled ( $dst(PDL::IO::GD), $src(PDL::IO::GD), $dstX,
811       $dstY, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH )
812
813   gdImageCompare
814       gdImageCompare ( $im1(PDL::IO::GD), $im2(PDL::IO::GD) )
815
816   gdImagePaletteCopy
817       gdImagePaletteCopy ( $dst(PDL::IO::GD), $src(PDL::IO::GD) )
818
819   StringTTF
820       $image->StringTTF( $brect, $fg, $fontlist, $ptsize, $angle, $x, $y,
821       $string )
822
823       Alias for gdImageStringTTF.
824
825   gdImageStringTTF
826       $image->gdImageStringTTF( $brect, $fg, $fontlist, $ptsize, $angle, $x,
827       $y, $string )
828
829   StringFT
830       $image->StringFT( $brect, $fg, $fontlist, $ptsize, $angle, $x, $y,
831       $string )
832
833       Alias for gdImageStringFT.
834
835   gdImageStringFT
836       $image->gdImageStringFT( $brect, $fg, $fontlist, $ptsize, $angle, $x,
837       $y, $string )
838

AUTHOR

840       Judd Taylor, Orbital Systems, Ltd.  judd dot t at orbitalsystems dot
841       com
842
843
844
845perl v5.12.3                      2011-03-31                             GD(3)
Impressum