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 variable 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 argument.
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 variable 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 argument.
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

METHODS

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

CLASS FUNCTIONS

809   gdImageCopy
810       gdImageCopy ( $dst(PDL::IO::GD), $src(PDL::IO::GD), $dstX, $dstY,
811       $srcX, $srcY, $w, $h )
812
813   gdImageCopyMerge
814       gdImageCopyMerge ( $dst(PDL::IO::GD), $src(PDL::IO::GD), $dstX, $dstY,
815       $srcX, $srcY, $w, $h, $pct )
816
817   gdImageCopyMergeGray
818       gdImageCopyMergeGray ( $dst(PDL::IO::GD), $src(PDL::IO::GD), $dstX,
819       $dstY, $srcX, $srcY, $w, $h, $pct )
820
821   gdImageCopyResized
822       gdImageCopyResized ( $dst(PDL::IO::GD), $src(PDL::IO::GD), $dstX,
823       $dstY, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH )
824
825   gdImageCopyResampled
826       gdImageCopyResampled ( $dst(PDL::IO::GD), $src(PDL::IO::GD), $dstX,
827       $dstY, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH )
828
829   gdImageCompare
830       gdImageCompare ( $im1(PDL::IO::GD), $im2(PDL::IO::GD) )
831
832   gdImagePaletteCopy
833       gdImagePaletteCopy ( $dst(PDL::IO::GD), $src(PDL::IO::GD) )
834
835   StringTTF
836       $image->StringTTF( $brect, $fg, $fontlist, $ptsize, $angle, $x, $y,
837       $string )
838
839       Alias for gdImageStringTTF.
840
841   gdImageStringTTF
842       $image->gdImageStringTTF( $brect, $fg, $fontlist, $ptsize, $angle, $x,
843       $y, $string )
844
845   StringFT
846       $image->StringFT( $brect, $fg, $fontlist, $ptsize, $angle, $x, $y,
847       $string )
848
849       Alias for gdImageStringFT.
850
851   gdImageStringFT
852       $image->gdImageStringFT( $brect, $fg, $fontlist, $ptsize, $angle, $x,
853       $y, $string )
854

AUTHOR

856       Judd Taylor, Orbital Systems, Ltd.  judd dot t at orbitalsystems dot
857       com
858
859
860
861perl v5.28.0                      2018-07-23                             GD(3)
Impressum