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, which currently include
102 wxBITMAP
\_TYPE\_JPEG, wxBITMAP
\_TYPE\_TIF, wxBITMAP
\_TYPE\_PNG, wxBITMAP
\_TYPE\_GIF, wxBITMAP
\_TYPE\_PCX,
103 and wxBITMAP
\_TYPE\_PNM. 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::GetSubBitmap
}\label{wxbitmapgetsubbitmap
}
317 \constfunc{wxBitmap
}{GetSubBitmap
}{\param{const wxRect&
}{rect
}}
319 Returns a sub bitmap of the current one as long as the rect belongs entirely to
320 the bitmap. This function preserves bit depth and mask information.
322 \membersection{wxBitmap::InitStandardHandlers
}
324 \func{static void
}{InitStandardHandlers
}{\void}
326 Adds the standard bitmap format handlers, which, depending on wxWindows
327 configuration, can be handlers for Windows bitmap, Windows bitmap resource, and XPM.
329 This function is called by wxWindows on startup.
333 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
335 \membersection{wxBitmap::InsertHandler
}
337 \func{static void
}{InsertHandler
}{\param{wxBitmapHandler*
}{ handler
}}
339 Adds a handler at the start of the static list of format handlers.
341 \docparam{handler
}{A new bitmap format handler object. There is usually only one instance
342 of a given handler class in an application session.
}
346 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
348 \membersection{wxBitmap::LoadFile
}\label{wxbitmaploadfile
}
350 \func{bool
}{LoadFile
}{\param{const wxString\&
}{ name
},
\param{long
}{ type
}}
352 Loads a bitmap from a file or resource.
354 \wxheading{Parameters
}
356 \docparam{name
}{Either a filename or a Windows resource name.
357 The meaning of
{\it name
} is determined by the
{\it type
} parameter.
}
359 \docparam{type
}{One of the following values:
363 \twocolitem{{\bf wxBITMAP
\_TYPE\_BMP}}{Load a Windows bitmap file.
}
364 \twocolitem{{\bf wxBITMAP
\_TYPE\_BMP\_RESOURCE}}{Load a Windows bitmap from the resource database.
}
365 \twocolitem{{\bf wxBITMAP
\_TYPE\_GIF}}{Load a GIF bitmap file.
}
366 \twocolitem{{\bf wxBITMAP
\_TYPE\_XBM}}{Load an X bitmap file.
}
367 \twocolitem{{\bf wxBITMAP
\_TYPE\_XPM}}{Load an XPM bitmap file.
}
370 The validity of these flags depends on the platform and wxWindows configuration.
372 In addition, wxBitmap can read all formats that
\helpref{wxImage
}{wximage
} can
373 (wxBITMAP
\_TYPE\_JPEG, wxBITMAP
\_TYPE\_PNG, wxBITMAP
\_TYPE\_GIF, wxBITMAP
\_TYPE\_PCX, wxBITMAP
\_TYPE\_PNM).
374 (Of course you must have wxImage handlers loaded.)
}
376 \wxheading{Return value
}
378 TRUE if the operation succeeded, FALSE otherwise.
382 A palette may be associated with the bitmap if one exists (especially for
383 colour Windows bitmaps), and if the code supports it. You can check
384 if one has been created by using the
\helpref{GetPalette
}{wxbitmapgetpalette
} member.
388 \helpref{wxBitmap::SaveFile
}{wxbitmapsavefile
}
390 \membersection{wxBitmap::Ok
}\label{wxbitmapok
}
392 \constfunc{bool
}{Ok
}{\void}
394 Returns TRUE if bitmap data is present.
396 \membersection{wxBitmap::RemoveHandler
}
398 \func{static bool
}{RemoveHandler
}{\param{const wxString\&
}{name
}}
400 Finds the handler with the given name, and removes it. The handler
403 \docparam{name
}{The handler name.
}
405 \wxheading{Return value
}
407 TRUE if the handler was found and removed, FALSE otherwise.
411 \helpref{wxBitmapHandler
}{wxbitmaphandler
}
413 \membersection{wxBitmap::SaveFile
}\label{wxbitmapsavefile
}
415 \func{bool
}{SaveFile
}{\param{const wxString\&
}{name
},
\param{int
}{ type
},
\param{wxPalette*
}{palette = NULL
}}
417 Saves a bitmap in the named file.
419 \wxheading{Parameters
}
421 \docparam{name
}{A filename. The meaning of
{\it name
} is determined by the
{\it type
} parameter.
}
423 \docparam{type
}{One of the following values:
427 \twocolitem{{\bf wxBITMAP
\_TYPE\_BMP}}{Save a Windows bitmap file.
}
428 \twocolitem{{\bf wxBITMAP
\_TYPE\_GIF}}{Save a GIF bitmap file.
}
429 \twocolitem{{\bf wxBITMAP
\_TYPE\_XBM}}{Save an X bitmap file.
}
430 \twocolitem{{\bf wxBITMAP
\_TYPE\_XPM}}{Save an XPM bitmap file.
}
433 The validity of these flags depends on the platform and wxWindows configuration.
435 In addition, wxBitmap can save all formats that
\helpref{wxImage
}{wximage
} can
436 (wxBITMAP
\_TYPE\_JPEG, wxBITMAP
\_TYPE\_PNG).
437 (Of course you must have wxImage handlers loaded.)
}
439 \docparam{palette
}{An optional palette used for saving the bitmap.
}
440 % TODO: this parameter should
441 %probably be eliminated; instead the app should set the palette before saving.
443 \wxheading{Return value
}
445 TRUE if the operation succeeded, FALSE otherwise.
449 Depending on how wxWindows has been configured, not all formats may be available.
453 \helpref{wxBitmap::LoadFile
}{wxbitmaploadfile
}
455 \membersection{wxBitmap::SetDepth
}\label{wxbitmapsetdepth
}
457 \func{void
}{SetDepth
}{\param{int
}{depth
}}
459 Sets the depth member (does not affect the bitmap data).
461 \wxheading{Parameters
}
463 \docparam{depth
}{Bitmap depth.
}
465 \membersection{wxBitmap::SetHeight
}\label{wxbitmapsetheight
}
467 \func{void
}{SetHeight
}{\param{int
}{height
}}
469 Sets the height member (does not affect the bitmap data).
471 \wxheading{Parameters
}
473 \docparam{height
}{Bitmap height in pixels.
}
475 \membersection{wxBitmap::SetMask
}\label{wxbitmapsetmask
}
477 \func{void
}{SetMask
}{\param{wxMask*
}{mask
}}
479 Sets the mask for this bitmap.
483 The bitmap object owns the mask once this has been called.
487 \helpref{wxBitmap::GetMask
}{wxbitmapgetmask
},
\helpref{wxMask
}{wxmask
}
489 \membersection{wxBitmap::SetOk
}
491 \func{void
}{SetOk
}{\param{int
}{isOk
}}
493 Sets the validity member (does not affect the bitmap data).
495 \wxheading{Parameters
}
497 \docparam{isOk
}{Validity flag.
}
499 \membersection{wxBitmap::SetPalette
}\label{wxbitmapsetpalette
}
501 \func{void
}{SetPalette
}{\param{wxPalette*
}{palette
}}
503 Sets the associated palette: it will be deleted in the wxBitmap
504 destructor, so if you do not wish it to be deleted automatically,
505 reset the palette to NULL before the bitmap is deleted.
507 \wxheading{Parameters
}
509 \docparam{palette
}{The palette to set.
}
513 The bitmap object owns the palette once this has been called.
517 \helpref{wxPalette
}{wxpalette
}
519 \membersection{wxBitmap::SetWidth
}
521 \func{void
}{SetWidth
}{\param{int
}{width
}}
523 Sets the width member (does not affect the bitmap data).
525 \wxheading{Parameters
}
527 \docparam{width
}{Bitmap width in pixels.
}
529 \membersection{wxBitmap::operator $=$
}
531 \func{wxBitmap\&
}{operator $=$
}{\param{const wxBitmap\&
}{bitmap
}}
533 Assignment operator. This operator does not copy any data, but instead
534 passes a pointer to the data in
{\it bitmap
} and increments a reference
535 counter. It is a fast operation.
537 \wxheading{Parameters
}
539 \docparam{bitmap
}{Bitmap to assign.
}
541 \wxheading{Return value
}
543 Returns 'this' object.
545 \membersection{wxBitmap::operator $==$
}
547 \func{bool
}{operator $==$
}{\param{const wxBitmap\&
}{bitmap
}}
549 Equality operator. This operator tests whether the internal data pointers are
552 \wxheading{Parameters
}
554 \docparam{bitmap
}{Bitmap to compare with 'this'
}
556 \wxheading{Return value
}
558 Returns TRUE if the bitmaps were effectively equal, FALSE otherwise.
560 \membersection{wxBitmap::operator $!=$
}
562 \func{bool
}{operator $!=$
}{\param{const wxBitmap\&
}{bitmap
}}
564 Inequality operator. This operator tests whether the internal data pointers are
565 unequal (a fast test).
567 \wxheading{Parameters
}
569 \docparam{bitmap
}{Bitmap to compare with 'this'
}
571 \wxheading{Return value
}
573 Returns TRUE if the bitmaps were unequal, FALSE otherwise.
575 \section{\class{wxBitmapHandler
}}\label{wxbitmaphandler
}
577 \overview{Overview
}{wxbitmapoverview
}
579 This is the base class for implementing bitmap file loading/saving, and bitmap creation from data.
580 It is used within wxBitmap and is not normally seen by the application.
582 If you wish to extend the capabilities of wxBitmap, derive a class from wxBitmapHandler
583 and add the handler using
\helpref{wxBitmap::AddHandler
}{wxbitmapaddhandler
} in your
584 application initialisation.
586 \wxheading{Derived from
}
588 \helpref{wxObject
}{wxobject
}
590 \wxheading{Include files
}
596 \helpref{wxBitmap
}{wxbitmap
},
\helpref{wxIcon
}{wxicon
},
\helpref{wxCursor
}{wxcursor
}
598 \latexignore{\rtfignore{\wxheading{Members
}}}
600 \membersection{wxBitmapHandler::wxBitmapHandler
}\label{wxbitmaphandlerconstr
}
602 \func{}{wxBitmapHandler
}{\void}
604 Default constructor. In your own default constructor, initialise the members
605 m
\_name, m
\_extension and m
\_type.
607 \membersection{wxBitmapHandler::
\destruct{wxBitmapHandler
}}
609 \func{}{\destruct{wxBitmapHandler
}}{\void}
611 Destroys the wxBitmapHandler object.
613 \membersection{wxBitmapHandler::Create
}
615 \func{virtual bool
}{Create
}{\param{wxBitmap*
}{bitmap
},
\param{void*
}{ data
},
\param{int
}{ type
},
\param{int
}{ width
},
\param{int
}{ height
},
\param{int
}{ depth = -
1}}
617 Creates a bitmap from the given data, which can be of arbitrary type. The wxBitmap object
{\it bitmap
} is
618 manipulated by this function.
620 \wxheading{Parameters
}
622 \docparam{bitmap
}{The wxBitmap object.
}
624 \docparam{width
}{The width of the bitmap in pixels.
}
626 \docparam{height
}{The height of the bitmap in pixels.
}
628 \docparam{depth
}{The depth of the bitmap in pixels. If this is -
1, the screen depth is used.
}
630 \docparam{data
}{Data whose type depends on the value of
{\it type
}.
}
632 \docparam{type
}{A bitmap type identifier - see
\helpref{wxBitmapHandler::wxBitmapHandler
}{wxbitmapconstr
} for a list
635 \wxheading{Return value
}
637 TRUE if the call succeeded, FALSE otherwise (the default).
639 \membersection{wxBitmapHandler::GetName
}
641 \constfunc{wxString
}{GetName
}{\void}
643 Gets the name of this handler.
645 \membersection{wxBitmapHandler::GetExtension
}
647 \constfunc{wxString
}{GetExtension
}{\void}
649 Gets the file extension associated with this handler.
651 \membersection{wxBitmapHandler::GetType
}
653 \constfunc{long
}{GetType
}{\void}
655 Gets the bitmap type associated with this handler.
657 \membersection{wxBitmapHandler::LoadFile
}\label{wxbitmaphandlerloadfile
}
659 \func{bool
}{LoadFile
}{\param{wxBitmap*
}{bitmap
},
\param{const wxString\&
}{ name
},
\param{long
}{ type
}}
661 Loads a bitmap from a file or resource, putting the resulting data into
{\it bitmap
}.
663 \wxheading{Parameters
}
665 \docparam{bitmap
}{The bitmap object which is to be affected by this operation.
}
667 \docparam{name
}{Either a filename or a Windows resource name.
668 The meaning of
{\it name
} is determined by the
{\it type
} parameter.
}
670 \docparam{type
}{See
\helpref{wxBitmap::wxBitmap
}{wxbitmapconstr
} for values this can take.
}
672 \wxheading{Return value
}
674 TRUE if the operation succeeded, FALSE otherwise.
678 \helpref{wxBitmap::LoadFile
}{wxbitmaploadfile
}\\
679 \helpref{wxBitmap::SaveFile
}{wxbitmapsavefile
}\\
680 \helpref{wxBitmapHandler::SaveFile
}{wxbitmaphandlersavefile
}
682 \membersection{wxBitmapHandler::SaveFile
}\label{wxbitmaphandlersavefile
}
684 \func{bool
}{SaveFile
}{\param{wxBitmap*
}{bitmap
},
\param{const wxString\&
}{name
},
\param{int
}{ type
},
\param{wxPalette*
}{palette = NULL
}}
686 Saves a bitmap in the named file.
688 \wxheading{Parameters
}
690 \docparam{bitmap
}{The bitmap object which is to be affected by this operation.
}
692 \docparam{name
}{A filename. The meaning of
{\it name
} is determined by the
{\it type
} parameter.
}
694 \docparam{type
}{See
\helpref{wxBitmap::wxBitmap
}{wxbitmapconstr
} for values this can take.
}
696 \docparam{palette
}{An optional palette used for saving the bitmap.
}
698 \wxheading{Return value
}
700 TRUE if the operation succeeded, FALSE otherwise.
704 \helpref{wxBitmap::LoadFile
}{wxbitmaploadfile
}\\
705 \helpref{wxBitmap::SaveFile
}{wxbitmapsavefile
}\\
706 \helpref{wxBitmapHandler::LoadFile
}{wxbitmaphandlerloadfile
}
708 \membersection{wxBitmapHandler::SetName
}
710 \func{void
}{SetName
}{\param{const wxString\&
}{name
}}
712 Sets the handler name.
714 \wxheading{Parameters
}
716 \docparam{name
}{Handler name.
}
718 \membersection{wxBitmapHandler::SetExtension
}
720 \func{void
}{SetExtension
}{\param{const wxString\&
}{extension
}}
722 Sets the handler extension.
724 \wxheading{Parameters
}
726 \docparam{extension
}{Handler extension.
}
728 \membersection{wxBitmapHandler::SetType
}
730 \func{void
}{SetType
}{\param{long
}{type
}}
732 Sets the handler type.
734 \wxheading{Parameters
}
736 \docparam{name
}{Handler type.
}