]> git.saurik.com Git - wxWidgets.git/blob - src/common/imagall.cpp
take pixel sizes into account as well when comparing fonts, not just point sizes...
[wxWidgets.git] / src / common / imagall.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/imagall.cpp
3 // Purpose: wxImage access all handler
4 // Author: Sylvain Bougnoux
5 // RCS-ID: $Id$
6 // Copyright: (c) Sylvain Bougnoux
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 // For compilers that support precompilation, includes "wx.h".
11 #include "wx/wxprec.h"
12
13 #ifdef __BORLANDC__
14 #pragma hdrstop
15 #endif
16
17 #ifndef WX_PRECOMP
18 #endif
19
20 #include "wx/image.h"
21
22 #if wxUSE_IMAGE
23
24 //-----------------------------------------------------------------------------
25 // This function allows dynamic access to all image handlers compile within
26 // the library. This function should be in a separate file as some compilers
27 // link against the whole object file as long as just one of is function is called!
28
29 void wxInitAllImageHandlers()
30 {
31 #if wxUSE_LIBPNG
32 wxImage::AddHandler( new wxPNGHandler );
33 #endif
34 #if wxUSE_LIBJPEG
35 wxImage::AddHandler( new wxJPEGHandler );
36 #endif
37 #if wxUSE_LIBTIFF
38 wxImage::AddHandler( new wxTIFFHandler );
39 #endif
40 #if wxUSE_GIF
41 wxImage::AddHandler( new wxGIFHandler );
42 #endif
43 #if wxUSE_PNM
44 wxImage::AddHandler( new wxPNMHandler );
45 #endif
46 #if wxUSE_PCX
47 wxImage::AddHandler( new wxPCXHandler );
48 #endif
49 #if wxUSE_IFF
50 wxImage::AddHandler( new wxIFFHandler );
51 #endif
52 #if wxUSE_ICO_CUR
53 wxImage::AddHandler( new wxICOHandler );
54 wxImage::AddHandler( new wxCURHandler );
55 wxImage::AddHandler( new wxANIHandler );
56 #endif
57 #if wxUSE_XPM
58 wxImage::AddHandler( new wxXPMHandler );
59 #endif
60 }
61
62 #endif // wxUSE_IMAGE