Returns the Windows directory under Windows; on other platforms returns the empty string.
+\membersection{::wxInitAllImageHandlers}\label{wxinitallimagehandlers}
+
+\func{void}{wxInitAllImageHandlers}{\void}
+
+Adds some common image format handlers, which, depending on wxWindows
+configuration, can be handlers for BMP (loading) (always installed), GIF
+(loading and saving), PCX (loading and saving), PNM (loading and saving as raw
+rgb), PNG (loading and saving), JPEG (loading and saving), file formats.
+
+See also: \helpref{wxImage}{wximage} \helpref{wxImageHandler}{wximagehandler}
+
\membersection{::wxIsAbsolutePath}
\func{bool}{wxIsAbsolutePath}{\param{const wxString\& }{filename}}
\wxheading{See also}
\helpref{wxBitmap}{wxbitmap}
+\helpref{wxInitAllImageHandlers}{wxinitallimagehandlers}
\latexignore{\rtfignore{\wxheading{Members}}}
Returns TRUE if there is a mask active, FALSE otherwise.
-\membersection{wxImage::InitAllHandlers}\label{wximageinitallhandlers}
-
-\func{static void}{InitAllHandlers}{\void}
-
-Adds some common image format handlers, which, depending on wxWindows
-configuration, can be handlers for BMP (loading) (always installed), GIF
-(loading and saving), PCX (loading and saving), PNM (loading and saving as raw
-rgb), PNG (loading and saving), JPEG (loading and saving), file formats.
-
-\wxheading{See also}
-
-\helpref{wxImageHandler}{wximagehandler}
-
\membersection{wxImage::InitStandardHandlers}
\func{static void}{InitStandardHandlers}{\void}
\wxheading{See also}
\helpref{wxImageHandler}{wximagehandler}
-\helpref{wxImage::InitAllHandlers}{wximageinitallhandlers}
+\helpref{wxInitAllImageHandlers}{wxinitallimagehandlers}
\membersection{wxImage::InsertHandler}
\wxheading{See also}
\helpref{wxImage}{wximage}
+\helpref{wxInitAllImageHandlers}{wxinitallimagehandlers}
\latexignore{\rtfignore{\wxheading{Members}}}
static void CleanUpHandlers();
static void InitStandardHandlers();
- static void InitAllHandlers();
-
+
protected:
static wxList sm_handlers;
};
+extern void wxInitAllImageHandlers();
+
#endif
// _WX_IMAGE_H_
AddHandler( new wxBMPHandler );
}
-void wxImage::InitAllHandlers()
-{
-#if wxUSE_LIBPNG
- AddHandler( new wxPNGHandler );
-#endif
-#if wxUSE_LIBJPEG
- AddHandler( new wxJPEGHandler );
-#endif
-#if wxUSE_GIF
- AddHandler( new wxGIFHandler );
-#endif
-#if wxUSE_PNM
- AddHandler( new wxPNMHandler );
-#endif
-#if wxUSE_PCX
- AddHandler( new wxPCXHandler );
-#endif
-}
-
void wxImage::CleanUpHandlers()
{
wxNode *node = sm_handlers.First();