Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / XS / Image.xs
1 #############################################################################
2 ## Name:        XS/Image.xs
3 ## Purpose:     XS for Wx::Image
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     02/12/2000
7 ## RCS-ID:      $Id: Image.xs 2626 2009-10-18 22:48:17Z mbarbon $
8 ## Copyright:   (c) 2000-2003, 2005-2009 Mattia Barbon
9 ## Licence:     This program is free software; you can redistribute it and/or
10 ##              modify it under the same terms as Perl itself
11 #############################################################################
12
13 #include <wx/image.h>
14 #include <wx/bitmap.h>
15 #include "cpp/streams.h"
16 #include "cpp/overload.h"
17
18 MODULE=Wx PACKAGE=Wx::Image
19
20 void
21 wxImage::new( ... )
22   PPCODE:
23     BEGIN_OVERLOAD()
24         MATCH_VOIDM_REDISP( newNull )
25         MATCH_REDISP( wxPliOvl_wico, newIcon )
26         MATCH_REDISP( wxPliOvl_wbmp, newBitmap )
27         MATCH_REDISP( wxPliOvl_wist_n, newStreamType )
28         MATCH_REDISP( wxPliOvl_wist_s, newStreamMIME )
29         MATCH_REDISP_COUNT( wxPliOvl_n_n, newWH, 2 )
30         MATCH_REDISP( wxPliOvl_n_n_s, newData )
31         MATCH_REDISP( wxPliOvl_n_n_s_s, newDataAlpha )
32         MATCH_REDISP( wxPliOvl_s_n, newNameType )
33         MATCH_REDISP( wxPliOvl_s_s, newNameMIME )
34     END_OVERLOAD( Wx::Image::new )
35
36 wxImage*
37 newNull( CLASS )
38     SV* CLASS
39   CODE:
40     RETVAL = new wxImage();
41   OUTPUT:
42     RETVAL
43
44 wxImage*
45 newWH( CLASS, width, height )
46     SV* CLASS
47     int width
48     int height
49   CODE:
50     RETVAL = new wxImage( width, height );
51   OUTPUT:
52     RETVAL
53
54 wxImage*
55 newData( CLASS, width, height, dt )
56     SV* CLASS
57     int width
58     int height
59     SV* dt
60   PREINIT:
61     STRLEN len;
62     unsigned char* data = (unsigned char*)SvPV( dt, len );
63     unsigned char* newdata;
64   CODE:
65     if( len != (STRLEN) width * height * 3 )
66     {
67         croak( "not enough data in image constructor" );
68     }
69     newdata = (unsigned char*)malloc( width * height * 3 );
70     memcpy( newdata, data, width * height * 3 );
71
72     RETVAL = new wxImage( width, height, newdata );
73   OUTPUT:
74     RETVAL
75
76 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
77
78 wxImage*
79 newDataAlpha( CLASS, width, height, dt, al )
80     SV* CLASS
81     int width
82     int height
83     SV* dt
84     SV* al
85   PREINIT:
86     STRLEN len_data, len_alpha;
87     unsigned char* data = (unsigned char*)SvPV( dt, len_data );
88     unsigned char* alpha = (unsigned char*)SvPV( al, len_alpha );
89   CODE:
90     if( len_data != (STRLEN) width * height * 3 ||
91         len_alpha != (STRLEN) width * height )
92     {
93         croak( "not enough data in image constructor" );
94     }
95     unsigned char* newdata = (unsigned char*) malloc( len_data );
96     memcpy( newdata, data, len_data );
97     unsigned char* newalpha = (unsigned char*) malloc( len_alpha );
98     memcpy( newalpha, alpha, len_alpha );
99
100     RETVAL = new wxImage( width, height, newdata, newalpha );
101   OUTPUT:
102     RETVAL
103
104 #endif
105
106 wxImage*
107 newNameType( CLASS, name, type, index = -1 )
108     SV* CLASS
109     wxString name
110     wxBitmapType type
111     int index
112   CODE:
113     RETVAL = new wxImage( name, type, index );
114   OUTPUT:
115     RETVAL
116
117 wxImage*
118 newNameMIME( CLASS, name, mimetype, index = -1 )
119     SV* CLASS
120     wxString name
121     wxString mimetype
122     int index
123   CODE:
124     RETVAL = new wxImage( name, mimetype, index );
125   OUTPUT:
126     RETVAL
127
128 wxImage*
129 newStreamType( CLASS, stream, type, index = -1 )
130     SV* CLASS
131     wxPliInputStream stream
132     wxBitmapType type
133     int index
134   CODE:
135     RETVAL = new wxImage( stream, type, index );
136   OUTPUT:
137     RETVAL
138
139 wxImage*
140 newStreamMIME( CLASS, stream, mime, index = -1 )
141     SV* CLASS
142     wxPliInputStream stream
143     wxString mime
144     int index
145   CODE:
146     RETVAL = new wxImage( stream, mime, index );
147   OUTPUT:
148     RETVAL
149
150 wxImage*
151 newBitmap( CLASS, bitmap )
152     wxBitmap* bitmap
153   CODE:
154     RETVAL = new wxImage( bitmap->ConvertToImage() );
155   OUTPUT: RETVAL
156
157 wxImage*
158 newIcon( CLASS, icon )
159     wxIcon* icon
160   CODE:
161     wxBitmap tmp; tmp.CopyFromIcon( *icon );
162     RETVAL = new wxImage( tmp.ConvertToImage() );
163   OUTPUT: RETVAL
164
165 static void
166 wxImage::CLONE()
167   CODE:
168     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
169
170 ## // thread OK
171 void
172 wxImage::DESTROY()
173   CODE:
174     wxPli_thread_sv_unregister( aTHX_ "Wx::Image", THIS, ST(0) );
175     delete THIS;
176
177 void
178 AddHandler( handler )
179     wxImageHandler* handler
180   CODE:
181     wxImage::AddHandler( handler );
182
183 wxImage*
184 wxImage::ConvertToMono( r, g, b )
185     unsigned char r
186     unsigned char g
187     unsigned char b
188   CODE:
189     RETVAL = new wxImage( THIS->ConvertToMono( r, g, b ) );
190   OUTPUT:
191     RETVAL
192
193 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
194
195 bool
196 wxImage::ConvertAlphaToMask( threshold = 128 )
197     unsigned char threshold
198
199 #endif
200
201 #if WXPERL_W_VERSION_GE( 2, 5, 4 )
202
203 bool
204 wxImage::ConvertColourToAlpha( r, g, b )
205     unsigned char r
206     unsigned char g
207     unsigned char b
208
209 #endif
210
211 #if WXPERL_W_VERSION_GE( 2, 7, 0 )
212  
213 wxImage*
214 wxImage::ConvertToGreyscale()
215   CODE:
216     RETVAL = new wxImage( THIS->ConvertToGreyscale() );
217   OUTPUT:
218     RETVAL
219  
220 #endif
221
222 wxImage*
223 wxImage::Copy()
224   CODE:
225     RETVAL = new wxImage( THIS->Copy() );
226   OUTPUT:
227     RETVAL
228
229 void
230 wxImage::Create( width, height )
231     int width
232     int height
233
234 void
235 wxImage::Destroy()
236
237 wxImageHandler*
238 FindHandlerName( name )
239     wxString name
240   CODE:
241     RETVAL = wxImage::FindHandler( name );
242   OUTPUT:
243     RETVAL
244
245 wxImageHandler*
246 FindHandlerExtType( extension, type )
247     wxString extension
248     wxBitmapType type
249   CODE:
250     RETVAL = wxImage::FindHandler( extension, type );
251   OUTPUT:
252     RETVAL
253
254 wxImageHandler*
255 FindHandlerType( type )
256     wxBitmapType type
257   CODE:
258     RETVAL = wxImage::FindHandler( type );
259   OUTPUT:
260     RETVAL
261
262 wxImageHandler*
263 FindHandlerMime( mime )
264    wxString mime
265   CODE:
266     RETVAL = wxImage::FindHandlerMime( mime );
267   OUTPUT:
268     RETVAL
269
270 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
271
272 void
273 wxImage::GetAlpha( ... )
274   PPCODE:
275     BEGIN_OVERLOAD()
276         MATCH_VOIDM_REDISP( GetAlphaData )
277         MATCH_REDISP( wxPliOvl_n_n, GetAlphaXY )
278     END_OVERLOAD( Wx::Image::GetAlpha )
279
280 unsigned char
281 wxImage::GetAlphaXY( x, y )
282     int x
283     int y
284   CODE:
285     RETVAL = THIS->GetAlpha( x, y );
286   OUTPUT: RETVAL
287
288 SV*
289 wxImage::GetAlphaData()
290   CODE:
291     unsigned char* alpha = THIS->GetAlpha();
292
293     if( alpha == NULL )
294         XSRETURN_UNDEF;
295
296     RETVAL = newSVpvn( (char*) alpha, THIS->GetWidth() * THIS->GetHeight() );
297   OUTPUT:
298     RETVAL
299
300 #endif
301
302 SV*
303 wxImage::GetData()
304   CODE:
305     STRLEN len = THIS->GetWidth() * THIS->GetHeight() * 3;
306     RETVAL = newSVpvn( (char*)THIS->GetData(), len );
307   OUTPUT:
308     RETVAL
309
310 unsigned char
311 wxImage::GetBlue( x, y )
312     int x
313     int y
314
315 unsigned char
316 wxImage::GetGreen( x, y )
317     int x
318     int y
319
320 unsigned char
321 wxImage::GetRed( x, y )
322     int x
323     int y
324
325 int
326 wxImage::GetHeight()
327
328 unsigned char
329 wxImage::GetMaskBlue()
330
331 unsigned char
332 wxImage::GetMaskGreen()
333
334 unsigned char
335 wxImage::GetMaskRed()
336
337 wxString
338 wxImage::GetOption( name )
339     wxString name
340
341 int
342 wxImage::GetOptionInt( name )
343     wxString name
344
345 wxPalette*
346 wxImage::GetPalette()
347   CODE:
348     RETVAL = new wxPalette( THIS->GetPalette() );
349   OUTPUT:
350     RETVAL
351
352 wxImage*
353 wxImage::GetSubImage( rect )
354     wxRect* rect
355   CODE:
356     RETVAL = new wxImage( THIS->GetSubImage( *rect ) );
357   OUTPUT:
358     RETVAL
359
360 int
361 wxImage::GetWidth()
362
363 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
364
365 bool
366 wxImage::HasAlpha()
367
368 #endif
369
370 #if WXPERL_W_VERSION_GE( 2, 5, 4 )
371
372 void
373 wxImage::InitAlpha()
374
375 #endif
376
377 #if WXPERL_W_VERSION_GE( 2, 6, 1 )
378
379 bool
380 wxImage::IsTransparent( x, y, threshold = wxIMAGE_ALPHA_THRESHOLD )
381     int x
382     int y
383     unsigned char threshold
384
385 #endif
386
387 bool
388 wxImage::HasMask()
389
390 bool
391 wxImage::HasOption( name )
392     wxString name
393
394 bool
395 wxImage::HasPalette()
396
397 void
398 InsertHandler( handler )
399     wxImageHandler* handler
400   CODE:
401     wxImage::InsertHandler( handler );
402
403 void
404 wxImage::LoadFile( ... )
405   PPCODE:
406     BEGIN_OVERLOAD()
407         MATCH_REDISP( wxPliOvl_wist_n, LoadStreamType )
408         MATCH_REDISP( wxPliOvl_wist_s, LoadStreamMIME )
409         MATCH_REDISP( wxPliOvl_s_n, LoadFileType )
410         MATCH_REDISP( wxPliOvl_s_s, LoadFileMIME )
411     END_OVERLOAD( Wx::Image::LoadFile )
412
413 bool
414 wxImage::LoadFileType( name, type, index = -1 )
415     wxString name
416     wxBitmapType type
417     int index
418   CODE:
419     RETVAL = THIS->LoadFile( name, type, index );
420   OUTPUT:
421     RETVAL
422
423 bool
424 wxImage::LoadFileMIME( name, type, index = -1 )
425     wxString name
426     wxString type
427     int index
428   CODE:
429     RETVAL = THIS->LoadFile( name, type, index );
430   OUTPUT:
431     RETVAL
432
433 bool
434 wxImage::LoadStreamType( stream, type, index = -1 )
435     wxPliInputStream stream
436     wxBitmapType type
437     int index
438   CODE:
439     RETVAL = THIS->LoadFile( stream, type, index );
440   OUTPUT:
441     RETVAL
442
443 bool
444 wxImage::LoadStreamMIME( stream, type, index = -1 )
445     wxPliInputStream stream
446     wxString type
447     int index
448   CODE:
449     RETVAL = THIS->LoadFile( stream, type, index );
450   OUTPUT:
451     RETVAL
452
453 bool
454 wxImage::Ok()
455
456 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
457
458 bool
459 wxImage::IsOk()
460
461 #endif
462
463 void
464 wxImage::SaveFile( ... )
465   PPCODE:
466     BEGIN_OVERLOAD()
467         MATCH_REDISP( wxPliOvl_wost_n, SaveFileSType )
468         MATCH_REDISP( wxPliOvl_wost_s, SaveFileSMIME )
469         MATCH_REDISP( wxPliOvl_s_n, SaveFileType )
470         MATCH_REDISP( wxPliOvl_s_s, SaveFileMIME )
471         MATCH_REDISP( wxPliOvl_s, SaveFileOnly )
472     END_OVERLOAD( Wx::Image::SaveFile )
473
474 bool
475 wxImage::SaveFileOnly( name )
476     wxString name
477   CODE:
478     RETVAL = THIS->SaveFile( name );
479   OUTPUT:
480     RETVAL
481
482 bool
483 wxImage::SaveFileType( name, type )
484     wxString name
485     wxBitmapType type
486   CODE:
487     RETVAL = THIS->SaveFile( name, type );
488   OUTPUT:
489     RETVAL
490
491 bool
492 wxImage::SaveFileMIME( name, type )
493     wxString name
494     wxString type
495   CODE:
496     RETVAL = THIS->SaveFile( name, type );
497   OUTPUT:
498     RETVAL
499
500 bool
501 wxImage::SaveStreamType( stream, type )
502     wxPliOutputStream stream
503     wxBitmapType type
504   CODE:
505     RETVAL = THIS->SaveFile( stream, type );
506   OUTPUT:
507     RETVAL
508
509 bool
510 wxImage::SaveStreamMIME( stream, type )
511     wxPliOutputStream stream
512     wxString type
513   CODE:
514     RETVAL = THIS->SaveFile( stream, type );
515   OUTPUT:
516     RETVAL
517
518 wxImage*
519 wxImage::Mirror( horizontally = true )
520     bool horizontally
521   CODE:
522     RETVAL = new wxImage( THIS->Mirror( horizontally ) );
523   OUTPUT: RETVAL
524
525 void
526 wxImage::Replace( r1, g1, b1, r2, g2, b2 )
527     unsigned char r1
528     unsigned char g1
529     unsigned char b1
530     unsigned char r2
531     unsigned char g2
532     unsigned char b2
533
534 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
535
536 wxImage*
537 wxImage::Rescale( width, height, quality = wxIMAGE_QUALITY_NORMAL )
538     int width
539     int height
540     wxImageResizeQuality quality
541   CODE:
542     RETVAL = new wxImage( THIS->Rescale( width, height, quality ) );
543   OUTPUT:
544     RETVAL
545
546 #else
547
548 wxImage*
549 wxImage::Rescale( width, height )
550     int width
551     int height
552   CODE:
553     RETVAL = new wxImage( THIS->Rescale( width, height ) );
554   OUTPUT:
555     RETVAL
556
557 #endif
558
559 void
560 wxImage::Rotate( angle, centre, interpolating = true )
561     double angle
562     wxPoint centre
563     bool interpolating
564   PREINIT:
565     wxPoint after;
566     wxImage* result;
567   PPCODE:
568     result = new wxImage( THIS->Rotate( angle, centre, interpolating, &after ) );
569     XPUSHs( wxPli_object_2_sv( aTHX_ sv_newmortal(), result ) );
570     if( GIMME_V == G_ARRAY ) {
571       PUSHs( wxPli_non_object_2_sv( aTHX_ sv_newmortal(), 
572              new wxPoint( after ), "Wx::Point" ) );
573     }
574
575 #if WXPERL_W_VERSION_GE( 2, 6, 3 )
576
577 void
578 wxImage::RotateHue( angle )
579     double angle
580
581 #endif
582
583 wxImage*
584 wxImage::Rotate90( clockwise = true )
585     bool clockwise
586   CODE:
587     RETVAL = new wxImage( THIS->Rotate90( clockwise ) );
588   OUTPUT:
589     RETVAL
590
591 #if WXPERL_W_VERSION_GE( 2, 4, 1 )
592
593 wxImage*
594 wxImage::ShrinkBy( xfactor, yfactor )
595     int xfactor
596     int yfactor
597   CODE:
598     RETVAL = new wxImage( THIS->ShrinkBy( xfactor, yfactor ) );
599   OUTPUT: RETVAL
600
601 #endif
602
603 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
604
605 wxImage*
606 wxImage::Scale( width, height, quality = wxIMAGE_QUALITY_NORMAL )
607     int width
608     int height
609     wxImageResizeQuality quality
610   CODE:
611     RETVAL = new wxImage( THIS->Scale( width, height, quality ) );
612   OUTPUT:
613     RETVAL
614
615 #else
616
617 wxImage*
618 wxImage::Scale( width, height )
619     int width
620     int height
621   CODE:
622     RETVAL = new wxImage( THIS->Scale( width, height ) );
623   OUTPUT:
624     RETVAL
625     
626 #endif
627
628 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
629
630 void
631 wxImage::SetAlpha( ... )
632   PPCODE:
633     BEGIN_OVERLOAD()
634         MATCH_REDISP( wxPliOvl_s, SetAlphaData )
635         MATCH_REDISP( wxPliOvl_n_n_n, SetAlphaXY )
636     END_OVERLOAD( Wx::Image::SetAlpha )
637
638 void
639 wxImage::SetAlphaXY( x, y, alpha )
640     int x
641     int y
642     unsigned char alpha
643   CODE:
644     THIS->SetAlpha( x, y, alpha );
645
646 void
647 wxImage::SetAlphaData( d )
648     SV* d
649   CODE:
650     STRLEN len;
651     unsigned char* data = (unsigned char*) SvPV( d, len );
652     STRLEN imglen = THIS->GetWidth() * THIS->GetHeight();
653     unsigned char* data_copy = (unsigned char*) malloc( imglen );
654     memcpy( data_copy, data, len );
655     THIS->SetAlpha( data_copy );
656
657 #endif
658
659 void
660 wxImage::SetData( d )
661     SV* d
662   CODE:
663     STRLEN len;
664     unsigned char* data = (unsigned char*)SvPV( d, len );
665     STRLEN imglen = THIS->GetWidth() * THIS->GetHeight() * 3;
666     unsigned char* data_copy = (unsigned char*)malloc( imglen );
667     memcpy( data_copy, data, len );
668     THIS->SetData( data_copy );
669
670 void
671 wxImage::SetMask( hasMask = true )
672     bool hasMask
673
674 void
675 wxImage::SetMaskColour( red, green, blue )
676     unsigned char red
677     unsigned char green
678     unsigned char blue
679
680 void
681 wxImage::SetOption( name, value )
682     wxString name
683     wxString value
684
685 void
686 wxImage::SetOptionInt( name, value )
687     wxString name
688     int value
689   CODE:
690     THIS->SetOption( name, value );
691
692 void
693 wxImage::SetPalette( palette )
694     wxPalette* palette
695   CODE:
696     THIS->SetPalette( *palette );
697
698 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
699
700 void
701 wxImage::SetRGB( ... )
702   PPCODE:
703     BEGIN_OVERLOAD()
704         MATCH_REDISP( wxPliOvl_n_n_n_n_n, SetRGBpixel )
705         MATCH_REDISP( wxPliOvl_wrec_n_n_n, SetRGBrect )
706     END_OVERLOAD( Wx::Image::SetRGB )
707     
708 void
709 wxImage::SetRGBpixel( x, y, red, green, blue )
710     int x
711     int y
712     unsigned char red
713     unsigned char green
714     unsigned char blue
715   CODE:
716     THIS->SetRGB( x, y, red, green, blue  );
717     
718 void
719 wxImage::SetRGBrect( rect, red, green, blue )
720     wxRect* rect
721     unsigned char red
722     unsigned char green
723     unsigned char blue
724   CODE:
725     THIS->SetRGB( *rect, red, green, blue  );    
726
727 #else
728
729 void
730 wxImage::SetRGB( x, y, red, green, blue )
731     int x
732     int y
733     unsigned char red
734     unsigned char green
735     unsigned char blue
736
737 #endif
738
739 #if WXPERL_W_VERSION_GE( 2, 8, 0 )
740
741 wxImage*
742 wxImage::Blur( blurradius )
743     int blurradius
744   CODE:
745     RETVAL = new wxImage( THIS->Blur( blurradius ) );
746   OUTPUT:
747     RETVAL
748
749 wxImage*
750 wxImage::BlurHorizontal( blurradius )
751     int blurradius
752   CODE:
753     RETVAL = new wxImage( THIS->BlurHorizontal( blurradius ) );
754   OUTPUT:
755     RETVAL
756     
757 wxImage*
758 wxImage::BlurVertical( blurradius )
759     int blurradius
760   CODE:
761     RETVAL = new wxImage( THIS->BlurVertical( blurradius ) );
762   OUTPUT:
763     RETVAL
764     
765 bool
766 wxImage::GetOrFindMaskColour(  red, green, blue  )
767     unsigned char* red
768     unsigned char* green
769     unsigned char* blue
770     
771 #endif
772
773 MODULE=Wx PACKAGE=Wx::ImageHandler
774
775 void
776 wxImageHandler::Destroy()
777   CODE:
778     delete THIS;
779
780 int
781 wxImageHandler::GetImageCount( stream )
782     wxPliInputStream stream
783
784 wxString
785 wxImageHandler::GetName()
786
787 wxString
788 wxImageHandler::GetExtension()
789
790 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
791
792 wxBitmapType
793 wxImageHandler::GetType()
794
795 #else
796
797 long
798 wxImageHandler::GetType()
799
800 #endif
801
802 wxString
803 wxImageHandler::GetMimeType()
804
805 bool
806 wxImageHandler::LoadFile( image, stream, verbose = true, index = 0 )
807     wxImage* image
808     wxPliInputStream stream
809     bool verbose
810     int index
811
812 bool
813 wxImageHandler::SaveFile( image, stream )
814     wxImage* image
815     wxPliOutputStream stream
816
817 void
818 wxImageHandler::SetName( name )
819     wxString name
820
821 void
822 wxImageHandler::SetExtension( ext )
823     wxString ext
824
825 void
826 wxImageHandler::SetMimeType( type )
827     wxString type
828
829 void
830 wxImageHandler::SetType( type )
831     wxBitmapType type
832
833 MODULE=Wx PACKAGE=Wx::GIFHandler
834
835 wxGIFHandler*
836 wxGIFHandler::new()
837
838 MODULE=Wx PACKAGE=Wx::BMPHandler
839
840 wxBMPHandler*
841 wxBMPHandler::new()
842
843 MODULE=Wx PACKAGE=Wx::PNMHandler
844
845 wxPNMHandler*
846 wxPNMHandler::new()
847
848 MODULE=Wx PACKAGE=Wx::PCXHandler
849
850 wxPCXHandler*
851 wxPCXHandler::new()
852
853 MODULE=Wx PACKAGE=Wx::PNGHandler
854
855 wxPNGHandler*
856 wxPNGHandler::new()
857
858 MODULE=Wx PACKAGE=Wx::JPEGHandler
859
860 wxJPEGHandler*
861 wxJPEGHandler::new()
862
863 #if wxPERL_USE_LIBTIFF && !defined( __WXWINCE__ )
864
865 MODULE=Wx PACKAGE=Wx::TIFFHandler
866
867 wxTIFFHandler*
868 wxTIFFHandler::new()
869
870 #endif
871
872 MODULE=Wx PACKAGE=Wx::XPMHandler
873
874 wxXPMHandler*
875 wxXPMHandler::new()
876
877 MODULE=Wx PACKAGE=Wx::IFFHandler
878
879 #if wxPERL_USE_IFF
880
881 wxIFFHandler*
882 wxIFFHandler::new()
883
884 #endif
885
886 #if wxPERL_USE_ICO_CUR
887
888 MODULE=Wx PACKAGE=Wx::ICOHandler
889
890 wxICOHandler*
891 wxICOHandler::new()
892
893 MODULE=Wx PACKAGE=Wx::CURHandler
894
895 wxCURHandler*
896 wxCURHandler::new()
897
898 MODULE=Wx PACKAGE=Wx::ANIHandler
899
900 wxANIHandler*
901 wxANIHandler::new()
902
903 #endif
904
905 #if wxUSE_TGA
906
907 MODULE=Wx PACKAGE=Wx::TGAHandler
908
909 wxTGAHandler*
910 wxTGAHandler::new()
911
912 #endif
913
914 MODULE=Wx PACKAGE=Wx PREFIX=wx
915
916 void
917 wxInitAllImageHandlers()