1 \section{\class{wxBitmap
}}\label{wxbitmap
}
3 %\overview{Overview}{wxbitmapoverview}
5 This class encapsulates the concept of a platform-dependent bitmap,
6 either monochrome or colour.
8 \wxheading{Derived from
}
10 \helpref{wxGDIObject
}{wxgdiobject
}\\
11 \helpref{wxObject
}{wxobject
}
13 \wxheading{Include files
}
17 \wxheading{Predefined objects
}
25 \helpref{wxBitmap overview
}{wxbitmapoverview
},
26 \helpref{supported bitmap file formats
}{supportedbitmapformats
},
27 \helpref{wxDC::Blit
}{wxdcblit
},
28 \helpref{wxIcon
}{wxicon
},
\helpref{wxCursor
}{wxcursor
},
\helpref{wxBitmap
}{wxbitmap
},
29 \helpref{wxMemoryDC
}{wxmemorydc
}
31 \latexignore{\rtfignore{\wxheading{Members
}}}
33 \membersection{wxBitmap::wxBitmap
}\label{wxbitmapconstr
}
35 \func{}{wxBitmap
}{\void}
39 \func{}{wxBitmap
}{\param{const wxBitmap\&
}{bitmap
}}
43 \func{}{wxBitmap
}{\param{void*
}{ data
},
\param{int
}{ type
},
\param{int
}{ width
},
\param{int
}{ height
},
\param{int
}{ depth = -
1}}
45 Creates a bitmap from the given data, which can be of arbitrary type.
46 Windows only, I think.
48 \func{}{wxBitmap
}{\param{const char
}{ bits
[]},
\param{int
}{ width
},
\param{int
}{ height
}\\
49 \param{int
}{ depth =
1}}
51 Creates a bitmap from an array of bits.
53 Note that the bit depth is ignored on GTK+ and Motif. If you want to create a bitmap
54 from something else than a
1-bit data array, use the
\helpref{wxImage
}{wximage
} class.
56 \func{}{wxBitmap
}{\param{int
}{ width
},
\param{int
}{ height
},
\param{int
}{ depth = -
1}}
58 Creates a new bitmap. A depth of -
1 indicates the depth of the current screen or
59 visual. Some platforms only support
1 for monochrome and -
1 for the current colour
62 \func{}{wxBitmap
}{\param{const char**
}{ bits
}}
64 Creates a bitmap from XPM data.
66 \func{}{wxBitmap
}{\param{const wxString\&
}{name
},
\param{long
}{ type
}}
68 Loads a bitmap from a file or resource.
70 \wxheading{Parameters
}
72 \docparam{bits
}{Specifies an array of pixel values.
}
74 \docparam{width
}{Specifies the width of the bitmap.
}
76 \docparam{height
}{Specifies the height of the bitmap.
}
78 \docparam{depth
}{Specifies the depth of the bitmap. If this is omitted, the display depth of the
81 \docparam{name
}{This can refer to a resource name under MS Windows, or a filename under MS Windows and X.
82 Its meaning is determined by the
{\it type
} parameter.
}
84 \docparam{type
}{May be one of the following:
88 \twocolitem{{\bf \indexit{wxBITMAP
\_TYPE\_BMP}}}{Load a Windows bitmap file.
}
89 \twocolitem{{\bf \indexit{wxBITMAP
\_TYPE\_BMP\_RESOURCE}}}{Load a Windows bitmap from the resource database.
}
90 \twocolitem{{\bf \indexit{wxBITMAP
\_TYPE\_GIF}}}{Load a GIF bitmap file.
}
91 \twocolitem{{\bf \indexit{wxBITMAP
\_TYPE\_XBM}}}{Load an X bitmap file.
}
92 \twocolitem{{\bf \indexit{wxBITMAP
\_TYPE\_XPM}}}{Load an XPM bitmap file.
}
93 \twocolitem{{\bf \indexit{wxBITMAP
\_TYPE\_RESOURCE}}}{Load a Windows resource name.
}
96 The validity of these flags depends on the platform and wxWindows configuration.
97 If all possible wxWindows settings are used, the Windows platform supports BMP file, BMP resource,
98 XPM data, and XPM. Under wxGTK, the available formats are BMP file, XPM data, XPM file, and PNG file.
99 Under wxMotif, the available formats are XBM data, XBM file, XPM data, XPM file.
101 In addition, wxBitmap can read all formats that
\helpref{wxImage
}{wximage
} can
102 (wxBITMAP
\_TYPE\_JPEG, wxBITMAP
\_TYPE\_PNG, wxBITMAP
\_TYPE\_GIF, wxBITMAP
\_TYPE\_PCX, wxBITMAP
\_TYPE\_PNM).
103 (Of course you must have wxImage handlers loaded.)
}
107 The first form constructs a bitmap object with no data; an assignment or another member function such as Create
108 or LoadFile must be called subsequently.
110 The second and third forms provide copy constructors. Note that these do not copy the
111 bitmap data, but instead a pointer to the data, keeping a reference count. They are therefore
112 very efficient operations.
114 The fourth form constructs a bitmap from data whose type and value depends on
115 the value of the
{\it type
} argument.
117 The fifth form constructs a (usually monochrome) bitmap from an array of pixel values, under both
120 The sixth form constructs a new bitmap.
122 The seventh form constructs a bitmap from pixmap (XPM) data, if wxWindows has been configured
123 to incorporate this feature.
125 To use this constructor, you must first include an XPM file. For
126 example, assuming that the file
{\tt mybitmap.xpm
} contains an XPM array
127 of character pointers called mybitmap:
130 #include "mybitmap.xpm"
134 wxBitmap *bitmap = new wxBitmap(mybitmap);
137 The eighth form constructs a bitmap from a file or resource.
{\it name
} can refer
138 to a resource name under MS Windows, or a filename under MS Windows and X.
140 Under Windows,
{\it type
} defaults to wxBITMAP
\_TYPE\_BMP\_RESOURCE.
141 Under X,
{\it type
} defaults to wxBITMAP
\_TYPE\_XPM.
145 \helpref{wxBitmap::LoadFile
}{wxbitmaploadfile
}
147 \pythonnote{Constructors supported by wxPython are:
\par
148 \indented{2cm
}{\begin{twocollist
}
149 \twocolitem{\bf{wxBitmap(name, flag)
}}{Loads a bitmap from a file
}
150 \twocolitem{\bf{wxBitmapFromData(data, type, width, height, depth=
1)
}}{Creates
151 a bitmap from the given data, which can be of arbitrary type.
}
152 \twocolitem{\bf{wxNoRefBitmap(name, flag)
}}{This one won't own the
153 reference, so Python won't call the destructor, this is good for toolbars
154 and such where the parent will manage the bitmap.
}
155 \twocolitem{\bf{wxEmptyBitmap(width, height, depth = -
1)
}}{Creates an
156 empty bitmap with the given specifications
}
160 \membersection{wxBitmap::
\destruct{wxBitmap
}}
162 \func{}{\destruct{wxBitmap
}}{\void}
164 Destroys the wxBitmap object and possibly the underlying bitmap data.
165 Because reference counting is used, the bitmap may not actually be
166 destroyed at this point - only when the reference count is zero will the
169 If the application omits to delete the bitmap explicitly, the bitmap will be
170 destroyed automatically by wxWindows when the application exits.
172 Do not delete a bitmap that is selected into a memory device context.
174 \membersection{wxBitmap::AddHandler
}\label{wxbitmapaddhandler
}
176 \func{static void
}{AddHandler
}{\param{wxBitmapHandler*
}{ handler
}}
178 Adds a handler to the end of the static list of format handlers.
180 \docparam{handler
}{A new bitmap format handler object. There is usually only one instance
181 of a given handler class in an application session.
}
185 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
187 \membersection{wxBitmap::CleanUpHandlers
}
189 \func{static void
}{CleanUpHandlers
}{\void}
191 Deletes all bitmap handlers.
193 This function is called by wxWindows on exit.
195 \membersection{wxBitmap::Create
}
197 \func{virtual bool
}{Create
}{\param{int
}{ width
},
\param{int
}{ height
},
\param{int
}{ depth = -
1}}
199 Creates a fresh bitmap. If the final argument is omitted, the display depth of
202 \func{virtual bool
}{Create
}{\param{void*
}{ data
},
\param{int
}{ type
},
\param{int
}{ width
},
\param{int
}{ height
},
\param{int
}{ depth = -
1}}
204 Creates a bitmap from the given data, which can be of arbitrary type.
206 \wxheading{Parameters
}
208 \docparam{width
}{The width of the bitmap in pixels.
}
210 \docparam{height
}{The height of the bitmap in pixels.
}
212 \docparam{depth
}{The depth of the bitmap in pixels. If this is -
1, the screen depth is used.
}
214 \docparam{data
}{Data whose type depends on the value of
{\it type
}.
}
216 \docparam{type
}{A bitmap type identifier - see
\helpref{wxBitmap::wxBitmap
}{wxbitmapconstr
} for a list
219 \wxheading{Return value
}
221 TRUE if the call succeeded, FALSE otherwise.
225 The first form works on all platforms. The portability of the second form depends on the
230 \helpref{wxBitmap::wxBitmap
}{wxbitmapconstr
}
232 \membersection{wxBitmap::FindHandler
}
234 \func{static wxBitmapHandler*
}{FindHandler
}{\param{const wxString\&
}{name
}}
236 Finds the handler with the given name.
238 \func{static wxBitmapHandler*
}{FindHandler
}{\param{const wxString\&
}{extension
},
\param{long
}{ bitmapType
}}
240 Finds the handler associated with the given extension and type.
242 \func{static wxBitmapHandler*
}{FindHandler
}{\param{long
}{bitmapType
}}
244 Finds the handler associated with the given bitmap type.
246 \docparam{name
}{The handler name.
}
248 \docparam{extension
}{The file extension, such as ``bmp".
}
250 \docparam{bitmapType
}{The bitmap type, such as wxBITMAP
\_TYPE\_BMP.
}
252 \wxheading{Return value
}
254 A pointer to the handler if found, NULL otherwise.
258 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
260 \membersection{wxBitmap::GetDepth
}
262 \constfunc{int
}{GetDepth
}{\void}
264 Gets the colour depth of the bitmap. A value of
1 indicates a
267 \membersection{wxBitmap::GetHandlers
}
269 \func{static wxList\&
}{GetHandlers
}{\void}
271 Returns the static list of bitmap format handlers.
275 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
277 \membersection{wxBitmap::GetHeight
}\label{wxbitmapgetheight
}
279 \constfunc{int
}{GetHeight
}{\void}
281 Gets the height of the bitmap in pixels.
283 \membersection{wxBitmap::GetPalette
}\label{wxbitmapgetpalette
}
285 \constfunc{wxPalette*
}{GetPalette
}{\void}
287 Gets the associated palette (if any) which may have been loaded from a file
288 or set for the bitmap.
292 \helpref{wxPalette
}{wxpalette
}
294 \membersection{wxBitmap::GetMask
}\label{wxbitmapgetmask
}
296 \constfunc{wxMask*
}{GetMask
}{\void}
298 Gets the associated mask (if any) which may have been loaded from a file
299 or set for the bitmap.
303 \helpref{wxBitmap::SetMask
}{wxbitmapsetmask
},
\helpref{wxMask
}{wxmask
}
305 \membersection{wxBitmap::GetWidth
}\label{wxbitmapgetwidth
}
307 \constfunc{int
}{GetWidth
}{\void}
309 Gets the width of the bitmap in pixels.
313 \helpref{wxBitmap::GetHeight
}{wxbitmapgetheight
}
315 \membersection{wxBitmap::InitStandardHandlers
}
317 \func{static void
}{InitStandardHandlers
}{\void}
319 Adds the standard bitmap format handlers, which, depending on wxWindows
320 configuration, can be handlers for Windows bitmap, Windows bitmap resource, and XPM.
322 This function is called by wxWindows on startup.
326 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
328 \membersection{wxBitmap::InsertHandler
}
330 \func{static void
}{InsertHandler
}{\param{wxBitmapHandler*
}{ handler
}}
332 Adds a handler at the start of the static list of format handlers.
334 \docparam{handler
}{A new bitmap format handler object. There is usually only one instance
335 of a given handler class in an application session.
}
339 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
341 \membersection{wxBitmap::LoadFile
}\label{wxbitmaploadfile
}
343 \func{bool
}{LoadFile
}{\param{const wxString\&
}{ name
},
\param{long
}{ type
}}
345 Loads a bitmap from a file or resource.
347 \wxheading{Parameters
}
349 \docparam{name
}{Either a filename or a Windows resource name.
350 The meaning of
{\it name
} is determined by the
{\it type
} parameter.
}
352 \docparam{type
}{One of the following values:
356 \twocolitem{{\bf wxBITMAP
\_TYPE\_BMP}}{Load a Windows bitmap file.
}
357 \twocolitem{{\bf wxBITMAP
\_TYPE\_BMP\_RESOURCE}}{Load a Windows bitmap from the resource database.
}
358 \twocolitem{{\bf wxBITMAP
\_TYPE\_GIF}}{Load a GIF bitmap file.
}
359 \twocolitem{{\bf wxBITMAP
\_TYPE\_XBM}}{Load an X bitmap file.
}
360 \twocolitem{{\bf wxBITMAP
\_TYPE\_XPM}}{Load an XPM bitmap file.
}
363 The validity of these flags depends on the platform and wxWindows configuration.
365 In addition, wxBitmap can read all formats that
\helpref{wxImage
}{wximage
} can
366 (wxBITMAP
\_TYPE\_JPEG, wxBITMAP
\_TYPE\_PNG, wxBITMAP
\_TYPE\_GIF, wxBITMAP
\_TYPE\_PCX, wxBITMAP
\_TYPE\_PNM).
367 (Of course you must have wxImage handlers loaded.)
}
369 \wxheading{Return value
}
371 TRUE if the operation succeeded, FALSE otherwise.
375 A palette may be associated with the bitmap if one exists (especially for
376 colour Windows bitmaps), and if the code supports it. You can check
377 if one has been created by using the
\helpref{GetPalette
}{wxbitmapgetpalette
} member.
381 \helpref{wxBitmap::SaveFile
}{wxbitmapsavefile
}
383 \membersection{wxBitmap::Ok
}\label{wxbitmapok
}
385 \constfunc{bool
}{Ok
}{\void}
387 Returns TRUE if bitmap data is present.
389 \membersection{wxBitmap::RemoveHandler
}
391 \func{static bool
}{RemoveHandler
}{\param{const wxString\&
}{name
}}
393 Finds the handler with the given name, and removes it. The handler
396 \docparam{name
}{The handler name.
}
398 \wxheading{Return value
}
400 TRUE if the handler was found and removed, FALSE otherwise.
404 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
406 \membersection{wxBitmap::SaveFile
}\label{wxbitmapsavefile
}
408 \func{bool
}{SaveFile
}{\param{const wxString\&
}{name
},
\param{int
}{ type
},
\param{wxPalette*
}{palette = NULL
}}
410 Saves a bitmap in the named file.
412 \wxheading{Parameters
}
414 \docparam{name
}{A filename. The meaning of
{\it name
} is determined by the
{\it type
} parameter.
}
416 \docparam{type
}{One of the following values:
420 \twocolitem{{\bf wxBITMAP
\_TYPE\_BMP}}{Save a Windows bitmap file.
}
421 \twocolitem{{\bf wxBITMAP
\_TYPE\_GIF}}{Save a GIF bitmap file.
}
422 \twocolitem{{\bf wxBITMAP
\_TYPE\_XBM}}{Save an X bitmap file.
}
423 \twocolitem{{\bf wxBITMAP
\_TYPE\_XPM}}{Save an XPM bitmap file.
}
426 The validity of these flags depends on the platform and wxWindows configuration.
428 In addition, wxBitmap can save all formats that
\helpref{wxImage
}{wximage
} can
429 (wxBITMAP
\_TYPE\_JPEG, wxBITMAP
\_TYPE\_PNG).
430 (Of course you must have wxImage handlers loaded.)
}
432 \docparam{palette
}{An optional palette used for saving the bitmap.
}
433 % TODO: this parameter should
434 %probably be eliminated; instead the app should set the palette before saving.
436 \wxheading{Return value
}
438 TRUE if the operation succeeded, FALSE otherwise.
442 Depending on how wxWindows has been configured, not all formats may be available.
446 \helpref{wxBitmap::LoadFile
}{wxbitmaploadfile
}
448 \membersection{wxBitmap::SetDepth
}\label{wxbitmapsetdepth
}
450 \func{void
}{SetDepth
}{\param{int
}{depth
}}
452 Sets the depth member (does not affect the bitmap data).
454 \wxheading{Parameters
}
456 \docparam{depth
}{Bitmap depth.
}
458 \membersection{wxBitmap::SetHeight
}\label{wxbitmapsetheight
}
460 \func{void
}{SetHeight
}{\param{int
}{height
}}
462 Sets the height member (does not affect the bitmap data).
464 \wxheading{Parameters
}
466 \docparam{height
}{Bitmap height in pixels.
}
468 \membersection{wxBitmap::SetMask
}\label{wxbitmapsetmask
}
470 \func{void
}{SetMask
}{\param{wxMask*
}{mask
}}
472 Sets the mask for this bitmap.
476 The bitmap object owns the mask once this has been called.
480 \helpref{wxBitmap::GetMask
}{wxbitmapgetmask
},
\helpref{wxMask
}{wxmask
}
482 \membersection{wxBitmap::SetOk
}
484 \func{void
}{SetOk
}{\param{int
}{isOk
}}
486 Sets the validity member (does not affect the bitmap data).
488 \wxheading{Parameters
}
490 \docparam{isOk
}{Validity flag.
}
492 \membersection{wxBitmap::SetPalette
}\label{wxbitmapsetpalette
}
494 \func{void
}{SetPalette
}{\param{wxPalette*
}{palette
}}
496 Sets the associated palette: it will be deleted in the wxBitmap
497 destructor, so if you do not wish it to be deleted automatically,
498 reset the palette to NULL before the bitmap is deleted.
500 \wxheading{Parameters
}
502 \docparam{palette
}{The palette to set.
}
506 The bitmap object owns the palette once this has been called.
510 \helpref{wxPalette
}{wxpalette
}
512 \membersection{wxBitmap::SetWidth
}
514 \func{void
}{SetWidth
}{\param{int
}{width
}}
516 Sets the width member (does not affect the bitmap data).
518 \wxheading{Parameters
}
520 \docparam{width
}{Bitmap width in pixels.
}
522 \membersection{wxBitmap::operator $=$
}
524 \func{wxBitmap\&
}{operator $=$
}{\param{const wxBitmap\&
}{bitmap
}}
526 Assignment operator. This operator does not copy any data, but instead
527 passes a pointer to the data in
{\it bitmap
} and increments a reference
528 counter. It is a fast operation.
530 \wxheading{Parameters
}
532 \docparam{bitmap
}{Bitmap to assign.
}
534 \wxheading{Return value
}
536 Returns 'this' object.
538 \membersection{wxBitmap::operator $==$
}
540 \func{bool
}{operator $==$
}{\param{const wxBitmap\&
}{bitmap
}}
542 Equality operator. This operator tests whether the internal data pointers are
545 \wxheading{Parameters
}
547 \docparam{bitmap
}{Bitmap to compare with 'this'
}
549 \wxheading{Return value
}
551 Returns TRUE if the bitmaps were effectively equal, FALSE otherwise.
553 \membersection{wxBitmap::operator $!=$
}
555 \func{bool
}{operator $!=$
}{\param{const wxBitmap\&
}{bitmap
}}
557 Inequality operator. This operator tests whether the internal data pointers are
558 unequal (a fast test).
560 \wxheading{Parameters
}
562 \docparam{bitmap
}{Bitmap to compare with 'this'
}
564 \wxheading{Return value
}
566 Returns TRUE if the bitmaps were unequal, FALSE otherwise.
568 \section{\class{wxBitmapHandler
}}\label{wxbitmaphandler
}
570 \overview{Overview
}{wxbitmapoverview
}
572 This is the base class for implementing bitmap file loading/saving, and bitmap creation from data.
573 It is used within wxBitmap and is not normally seen by the application.
575 If you wish to extend the capabilities of wxBitmap, derive a class from wxBitmapHandler
576 and add the handler using
\helpref{wxBitmap::AddHandler
}{wxbitmapaddhandler
} in your
577 application initialisation.
579 \wxheading{Derived from
}
581 \helpref{wxObject
}{wxobject
}
583 \wxheading{Include files
}
589 \helpref{wxBitmap
}{wxbitmap
},
\helpref{wxIcon
}{wxicon
},
\helpref{wxCursor
}{wxcursor
}
591 \latexignore{\rtfignore{\wxheading{Members
}}}
593 \membersection{wxBitmapHandler::wxBitmapHandler
}\label{wxbitmaphandlerconstr
}
595 \func{}{wxBitmapHandler
}{\void}
597 Default constructor. In your own default constructor, initialise the members
598 m
\_name, m
\_extension and m
\_type.
600 \membersection{wxBitmapHandler::
\destruct{wxBitmapHandler
}}
602 \func{}{\destruct{wxBitmapHandler
}}{\void}
604 Destroys the wxBitmapHandler object.
606 \membersection{wxBitmapHandler::Create
}
608 \func{virtual bool
}{Create
}{\param{wxBitmap*
}{bitmap
},
\param{void*
}{ data
},
\param{int
}{ type
},
\param{int
}{ width
},
\param{int
}{ height
},
\param{int
}{ depth = -
1}}
610 Creates a bitmap from the given data, which can be of arbitrary type. The wxBitmap object
{\it bitmap
} is
611 manipulated by this function.
613 \wxheading{Parameters
}
615 \docparam{bitmap
}{The wxBitmap object.
}
617 \docparam{width
}{The width of the bitmap in pixels.
}
619 \docparam{height
}{The height of the bitmap in pixels.
}
621 \docparam{depth
}{The depth of the bitmap in pixels. If this is -
1, the screen depth is used.
}
623 \docparam{data
}{Data whose type depends on the value of
{\it type
}.
}
625 \docparam{type
}{A bitmap type identifier - see
\helpref{wxBitmapHandler::wxBitmapHandler
}{wxbitmapconstr
} for a list
628 \wxheading{Return value
}
630 TRUE if the call succeeded, FALSE otherwise (the default).
632 \membersection{wxBitmapHandler::GetName
}
634 \constfunc{wxString
}{GetName
}{\void}
636 Gets the name of this handler.
638 \membersection{wxBitmapHandler::GetExtension
}
640 \constfunc{wxString
}{GetExtension
}{\void}
642 Gets the file extension associated with this handler.
644 \membersection{wxBitmapHandler::GetType
}
646 \constfunc{long
}{GetType
}{\void}
648 Gets the bitmap type associated with this handler.
650 \membersection{wxBitmapHandler::LoadFile
}\label{wxbitmaphandlerloadfile
}
652 \func{bool
}{LoadFile
}{\param{wxBitmap*
}{bitmap
},
\param{const wxString\&
}{ name
},
\param{long
}{ type
}}
654 Loads a bitmap from a file or resource, putting the resulting data into
{\it bitmap
}.
656 \wxheading{Parameters
}
658 \docparam{bitmap
}{The bitmap object which is to be affected by this operation.
}
660 \docparam{name
}{Either a filename or a Windows resource name.
661 The meaning of
{\it name
} is determined by the
{\it type
} parameter.
}
663 \docparam{type
}{See
\helpref{wxBitmap::wxBitmap
}{wxbitmapconstr
} for values this can take.
}
665 \wxheading{Return value
}
667 TRUE if the operation succeeded, FALSE otherwise.
671 \helpref{wxBitmap::LoadFile
}{wxbitmaploadfile
}\\
672 \helpref{wxBitmap::SaveFile
}{wxbitmapsavefile
}\\
673 \helpref{wxBitmapHandler::SaveFile
}{wxbitmaphandlersavefile
}
675 \membersection{wxBitmapHandler::SaveFile
}\label{wxbitmaphandlersavefile
}
677 \func{bool
}{SaveFile
}{\param{wxBitmap*
}{bitmap
},
\param{const wxString\&
}{name
},
\param{int
}{ type
},
\param{wxPalette*
}{palette = NULL
}}
679 Saves a bitmap in the named file.
681 \wxheading{Parameters
}
683 \docparam{bitmap
}{The bitmap object which is to be affected by this operation.
}
685 \docparam{name
}{A filename. The meaning of
{\it name
} is determined by the
{\it type
} parameter.
}
687 \docparam{type
}{See
\helpref{wxBitmap::wxBitmap
}{wxbitmapconstr
} for values this can take.
}
689 \docparam{palette
}{An optional palette used for saving the bitmap.
}
691 \wxheading{Return value
}
693 TRUE if the operation succeeded, FALSE otherwise.
697 \helpref{wxBitmap::LoadFile
}{wxbitmaploadfile
}\\
698 \helpref{wxBitmap::SaveFile
}{wxbitmapsavefile
}\\
699 \helpref{wxBitmapHandler::LoadFile
}{wxbitmaphandlerloadfile
}
701 \membersection{wxBitmapHandler::SetName
}
703 \func{void
}{SetName
}{\param{const wxString\&
}{name
}}
705 Sets the handler name.
707 \wxheading{Parameters
}
709 \docparam{name
}{Handler name.
}
711 \membersection{wxBitmapHandler::SetExtension
}
713 \func{void
}{SetExtension
}{\param{const wxString\&
}{extension
}}
715 Sets the handler extension.
717 \wxheading{Parameters
}
719 \docparam{extension
}{Handler extension.
}
721 \membersection{wxBitmapHandler::SetType
}
723 \func{void
}{SetType
}{\param{long
}{type
}}
725 Sets the handler type.
727 \wxheading{Parameters
}
729 \docparam{name
}{Handler type.
}