]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/bitmap.tex
Small distrib updates,
[wxWidgets.git] / docs / latex / wx / bitmap.tex
1 \section{\class{wxBitmap}}\label{wxbitmap}
2
3 %\overview{Overview}{wxbitmapoverview}
4 %
5 This class encapsulates the concept of a platform-dependent bitmap,
6 either monochrome or colour.
7
8 \wxheading{Derived from}
9
10 \helpref{wxGDIObject}{wxgdiobject}\\
11 \helpref{wxObject}{wxobject}
12
13 \wxheading{Include files}
14
15 <wx/bitmap.h>
16
17 \wxheading{Predefined objects}
18
19 Objects:
20
21 {\bf wxNullBitmap}
22
23 \wxheading{See also}
24
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}
30
31 \latexignore{\rtfignore{\wxheading{Members}}}
32
33 \membersection{wxBitmap::wxBitmap}\label{wxbitmapconstr}
34
35 \func{}{wxBitmap}{\void}
36
37 Default constructor.
38
39 \func{}{wxBitmap}{\param{const wxBitmap\& }{bitmap}}
40
41 Copy constructor.
42
43 \func{}{wxBitmap}{\param{void*}{ data}, \param{int}{ type}, \param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
44
45 Creates a bitmap from the given data, which can be of arbitrary type.
46
47 \func{}{wxBitmap}{\param{const char}{ bits[]}, \param{int}{ width}, \param{int}{ height}\\
48 \param{int}{ depth = 1}}
49
50 Creates a bitmap from an array of bits.
51
52 \func{}{wxBitmap}{\param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
53
54 Creates a new bitmap.
55
56 \func{}{wxBitmap}{\param{const char**}{ bits}}
57
58 Creates a bitmap from XPM data.
59
60 \func{}{wxBitmap}{\param{const wxString\& }{name}, \param{long}{ type}}
61
62 Loads a bitmap from a file or resource.
63
64 \wxheading{Parameters}
65
66 \docparam{bits}{Specifies an array of pixel values.}
67
68 \docparam{width}{Specifies the width of the bitmap.}
69
70 \docparam{height}{Specifies the height of the bitmap.}
71
72 \docparam{depth}{Specifies the depth of the bitmap. If this is omitted, the display depth of the
73 screen is used.}
74
75 \docparam{name}{This can refer to a resource name under MS Windows, or a filename under MS Windows and X.
76 Its meaning is determined by the {\it type} parameter.}
77
78 \docparam{type}{May be one of the following:
79
80 \twocolwidtha{5cm}
81 \begin{twocollist}
82 \twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_BMP}}}{Load a Windows bitmap file.}
83 \twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_BMP\_RESOURCE}}}{Load a Windows bitmap from the resource database.}
84 \twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_GIF}}}{Load a GIF bitmap file.}
85 \twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_XBM}}}{Load an X bitmap file.}
86 \twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_XPM}}}{Load an XPM bitmap file.}
87 \twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_RESOURCE}}}{Load a Windows resource name.}
88 \end{twocollist}
89
90 The validity of these flags depends on the platform and wxWindows configuration.
91 If all possible wxWindows settings are used, the Windows platform supports BMP file, BMP resource,
92 XPM data, and XPM. Under wxGTK, the available formats are BMP file, XPM data, XPM file, and PNG file.
93 Under wxMotif, the available formats are XBM data, XBM file, XPM data, XPM file.}
94
95 \wxheading{Remarks}
96
97 The first form constructs a bitmap object with no data; an assignment or another member function such as Create
98 or LoadFile must be called subsequently.
99
100 The second and third forms provide copy constructors. Note that these do not copy the
101 bitmap data, but instead a pointer to the data, keeping a reference count. They are therefore
102 very efficient operations.
103
104 The fourth form constructs a bitmap from data whose type and value depends on
105 the value of the {\it type} argument.
106
107 The fifth form constructs a (usually monochrome) bitmap from an array of pixel values, under both
108 X and Windows.
109
110 The sixth form constructs a new bitmap.
111
112 The seventh form constructs a bitmap from pixmap (XPM) data, if wxWindows has been configured
113 to incorporate this feature.
114
115 To use this constructor, you must first include an XPM file. For
116 example, assuming that the file {\tt mybitmap.xpm} contains an XPM array
117 of character pointers called mybitmap:
118
119 \begin{verbatim}
120 #include "mybitmap.xpm"
121
122 ...
123
124 wxBitmap *bitmap = new wxBitmap(mybitmap);
125 \end{verbatim}
126
127 The eighth form constructs a bitmap from a file or resource. {\it name} can refer
128 to a resource name under MS Windows, or a filename under MS Windows and X.
129
130 Under Windows, {\it type} defaults to wxBITMAP\_TYPE\_BMP\_RESOURCE.
131 Under X, {\it type} defaults to wxBITMAP\_TYPE\_XPM.
132
133 \wxheading{See also}
134
135 \helpref{wxBitmap::LoadFile}{wxbitmaploadfile}
136
137 \pythonnote{Constructors supported by wxPython are:\par
138 \indented{2cm}{\begin{twocollist}
139 \twocolitem{\bf{wxBitmap(name, flag)}}{Loads a bitmap from a file}
140 \twocolitem{\bf{wxNoRefBitmap(name, flag)}}{This one won't own the
141 reference, so Python won't call the destructor, this is good for toolbars
142 and such where the parent will manage the bitmap.}
143 \twocolitem{\bf{wxEmptyBitmap(width, height, depth = -1)}}{Creates an
144 empty bitmap with the given specifications}
145 \end{twocollist}}
146 }
147
148 \membersection{wxBitmap::\destruct{wxBitmap}}
149
150 \func{}{\destruct{wxBitmap}}{\void}
151
152 Destroys the wxBitmap object and possibly the underlying bitmap data.
153 Because reference counting is used, the bitmap may not actually be
154 destroyed at this point - only when the reference count is zero will the
155 data be deleted.
156
157 If the application omits to delete the bitmap explicitly, the bitmap will be
158 destroyed automatically by wxWindows when the application exits.
159
160 Do not delete a bitmap that is selected into a memory device context.
161
162 \membersection{wxBitmap::AddHandler}\label{wxbitmapaddhandler}
163
164 \func{static void}{AddHandler}{\param{wxBitmapHandler*}{ handler}}
165
166 Adds a handler to the end of the static list of format handlers.
167
168 \docparam{handler}{A new bitmap format handler object. There is usually only one instance
169 of a given handler class in an application session.}
170
171 \wxheading{See also}
172
173 \helpref{wxBitmapHandler}{wxbitmaphandler}
174
175 \membersection{wxBitmap::CleanUpHandlers}
176
177 \func{static void}{CleanUpHandlers}{\void}
178
179 Deletes all bitmap handlers.
180
181 This function is called by wxWindows on exit.
182
183 \membersection{wxBitmap::Create}
184
185 \func{virtual bool}{Create}{\param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
186
187 Creates a fresh bitmap. If the final argument is omitted, the display depth of
188 the screen is used.
189
190 \func{virtual bool}{Create}{\param{void*}{ data}, \param{int}{ type}, \param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
191
192 Creates a bitmap from the given data, which can be of arbitrary type.
193
194 \wxheading{Parameters}
195
196 \docparam{width}{The width of the bitmap in pixels.}
197
198 \docparam{height}{The height of the bitmap in pixels.}
199
200 \docparam{depth}{The depth of the bitmap in pixels. If this is -1, the screen depth is used.}
201
202 \docparam{data}{Data whose type depends on the value of {\it type}.}
203
204 \docparam{type}{A bitmap type identifier - see \helpref{wxBitmap::wxBitmap}{wxbitmapconstr} for a list
205 of possible values.}
206
207 \wxheading{Return value}
208
209 TRUE if the call succeeded, FALSE otherwise.
210
211 \wxheading{Remarks}
212
213 The first form works on all platforms. The portability of the second form depends on the
214 type of data.
215
216 \wxheading{See also}
217
218 \helpref{wxBitmap::wxBitmap}{wxbitmapconstr}
219
220 \membersection{wxBitmap::FindHandler}
221
222 \func{static wxBitmapHandler*}{FindHandler}{\param{const wxString\& }{name}}
223
224 Finds the handler with the given name.
225
226 \func{static wxBitmapHandler*}{FindHandler}{\param{const wxString\& }{extension}, \param{long}{ bitmapType}}
227
228 Finds the handler associated with the given extension and type.
229
230 \func{static wxBitmapHandler*}{FindHandler}{\param{long }{bitmapType}}
231
232 Finds the handler associated with the given bitmap type.
233
234 \docparam{name}{The handler name.}
235
236 \docparam{extension}{The file extension, such as ``bmp".}
237
238 \docparam{bitmapType}{The bitmap type, such as wxBITMAP\_TYPE\_BMP.}
239
240 \wxheading{Return value}
241
242 A pointer to the handler if found, NULL otherwise.
243
244 \wxheading{See also}
245
246 \helpref{wxBitmapHandler}{wxbitmaphandler}
247
248 \membersection{wxBitmap::GetDepth}
249
250 \constfunc{int}{GetDepth}{\void}
251
252 Gets the colour depth of the bitmap. A value of 1 indicates a
253 monochrome bitmap.
254
255 \membersection{wxBitmap::GetHandlers}
256
257 \func{static wxList\&}{GetHandlers}{\void}
258
259 Returns the static list of bitmap format handlers.
260
261 \wxheading{See also}
262
263 \helpref{wxBitmapHandler}{wxbitmaphandler}
264
265 \membersection{wxBitmap::GetHeight}\label{wxbitmapgetheight}
266
267 \constfunc{int}{GetHeight}{\void}
268
269 Gets the height of the bitmap in pixels.
270
271 \membersection{wxBitmap::GetPalette}\label{wxbitmapgetpalette}
272
273 \constfunc{wxPalette*}{GetPalette}{\void}
274
275 Gets the associated palette (if any) which may have been loaded from a file
276 or set for the bitmap.
277
278 \wxheading{See also}
279
280 \helpref{wxPalette}{wxpalette}
281
282 \membersection{wxBitmap::GetMask}\label{wxbitmapgetmask}
283
284 \constfunc{wxMask*}{GetMask}{\void}
285
286 Gets the associated mask (if any) which may have been loaded from a file
287 or set for the bitmap.
288
289 \wxheading{See also}
290
291 \helpref{wxBitmap::SetMask}{wxbitmapsetmask}, \helpref{wxMask}{wxmask}
292
293 \membersection{wxBitmap::GetWidth}\label{wxbitmapgetwidth}
294
295 \constfunc{int}{GetWidth}{\void}
296
297 Gets the width of the bitmap in pixels.
298
299 \wxheading{See also}
300
301 \helpref{wxBitmap::GetHeight}{wxbitmapgetheight}
302
303 \membersection{wxBitmap::InitStandardHandlers}
304
305 \func{static void}{InitStandardHandlers}{\void}
306
307 Adds the standard bitmap format handlers, which, depending on wxWindows
308 configuration, can be handlers for Windows bitmap, Windows bitmap resource, and XPM.
309
310 This function is called by wxWindows on startup.
311
312 \wxheading{See also}
313
314 \helpref{wxBitmapHandler}{wxbitmaphandler}
315
316 \membersection{wxBitmap::InsertHandler}
317
318 \func{static void}{InsertHandler}{\param{wxBitmapHandler*}{ handler}}
319
320 Adds a handler at the start of the static list of format handlers.
321
322 \docparam{handler}{A new bitmap format handler object. There is usually only one instance
323 of a given handler class in an application session.}
324
325 \wxheading{See also}
326
327 \helpref{wxBitmapHandler}{wxbitmaphandler}
328
329 \membersection{wxBitmap::LoadFile}\label{wxbitmaploadfile}
330
331 \func{bool}{LoadFile}{\param{const wxString\&}{ name}, \param{long}{ type}}
332
333 Loads a bitmap from a file or resource.
334
335 \wxheading{Parameters}
336
337 \docparam{name}{Either a filename or a Windows resource name.
338 The meaning of {\it name} is determined by the {\it type} parameter.}
339
340 \docparam{type}{One of the following values:
341
342 \twocolwidtha{5cm}
343 \begin{twocollist}
344 \twocolitem{{\bf wxBITMAP\_TYPE\_BMP}}{Load a Windows bitmap file.}
345 \twocolitem{{\bf wxBITMAP\_TYPE\_BMP\_RESOURCE}}{Load a Windows bitmap from the resource database.}
346 \twocolitem{{\bf wxBITMAP\_TYPE\_GIF}}{Load a GIF bitmap file.}
347 \twocolitem{{\bf wxBITMAP\_TYPE\_XBM}}{Load an X bitmap file.}
348 \twocolitem{{\bf wxBITMAP\_TYPE\_XPM}}{Load an XPM bitmap file.}
349 \end{twocollist}
350
351 The validity of these flags depends on the platform and wxWindows configuration.}
352
353 \wxheading{Return value}
354
355 TRUE if the operation succeeded, FALSE otherwise.
356
357 \wxheading{Remarks}
358
359 A palette may be associated with the bitmap if one exists (especially for
360 colour Windows bitmaps), and if the code supports it. You can check
361 if one has been created by using the \helpref{GetPalette}{wxbitmapgetpalette} member.
362
363 \wxheading{See also}
364
365 \helpref{wxBitmap::SaveFile}{wxbitmapsavefile}
366
367 \membersection{wxBitmap::Ok}\label{wxbitmapok}
368
369 \constfunc{bool}{Ok}{\void}
370
371 Returns TRUE if bitmap data is present.
372
373 \membersection{wxBitmap::RemoveHandler}
374
375 \func{static bool}{RemoveHandler}{\param{const wxString\& }{name}}
376
377 Finds the handler with the given name, and removes it. The handler
378 is not deleted.
379
380 \docparam{name}{The handler name.}
381
382 \wxheading{Return value}
383
384 TRUE if the handler was found and removed, FALSE otherwise.
385
386 \wxheading{See also}
387
388 \helpref{wxBitmapHandler}{wxbitmaphandler}
389
390 \membersection{wxBitmap::SaveFile}\label{wxbitmapsavefile}
391
392 \func{bool}{SaveFile}{\param{const wxString\& }{name}, \param{int}{ type}, \param{wxPalette* }{palette = NULL}}
393
394 Saves a bitmap in the named file.
395
396 \wxheading{Parameters}
397
398 \docparam{name}{A filename. The meaning of {\it name} is determined by the {\it type} parameter.}
399
400 \docparam{type}{One of the following values:
401
402 \twocolwidtha{5cm}
403 \begin{twocollist}
404 \twocolitem{{\bf wxBITMAP\_TYPE\_BMP}}{Save a Windows bitmap file.}
405 \twocolitem{{\bf wxBITMAP\_TYPE\_GIF}}{Save a GIF bitmap file.}
406 \twocolitem{{\bf wxBITMAP\_TYPE\_XBM}}{Save an X bitmap file.}
407 \twocolitem{{\bf wxBITMAP\_TYPE\_XPM}}{Save an XPM bitmap file.}
408 \end{twocollist}
409
410 The validity of these flags depends on the platform and wxWindows configuration.}
411
412 \docparam{palette}{An optional palette used for saving the bitmap.}
413 % TODO: this parameter should
414 %probably be eliminated; instead the app should set the palette before saving.
415
416 \wxheading{Return value}
417
418 TRUE if the operation succeeded, FALSE otherwise.
419
420 \wxheading{Remarks}
421
422 Depending on how wxWindows has been configured, not all formats may be available.
423
424 \wxheading{See also}
425
426 \helpref{wxBitmap::LoadFile}{wxbitmaploadfile}
427
428 \membersection{wxBitmap::SetDepth}\label{wxbitmapsetdepth}
429
430 \func{void}{SetDepth}{\param{int }{depth}}
431
432 Sets the depth member (does not affect the bitmap data).
433
434 \wxheading{Parameters}
435
436 \docparam{depth}{Bitmap depth.}
437
438 \membersection{wxBitmap::SetHeight}\label{wxbitmapsetheight}
439
440 \func{void}{SetHeight}{\param{int }{height}}
441
442 Sets the height member (does not affect the bitmap data).
443
444 \wxheading{Parameters}
445
446 \docparam{height}{Bitmap height in pixels.}
447
448 \membersection{wxBitmap::SetMask}\label{wxbitmapsetmask}
449
450 \func{void}{SetMask}{\param{wxMask* }{mask}}
451
452 Sets the mask for this bitmap.
453
454 \wxheading{Remarks}
455
456 The bitmap object owns the mask once this has been called.
457
458 \wxheading{See also}
459
460 \helpref{wxBitmap::GetMask}{wxbitmapgetmask}, \helpref{wxMask}{wxmask}
461
462 \membersection{wxBitmap::SetOk}
463
464 \func{void}{SetOk}{\param{int }{isOk}}
465
466 Sets the validity member (does not affect the bitmap data).
467
468 \wxheading{Parameters}
469
470 \docparam{isOk}{Validity flag.}
471
472 \membersection{wxBitmap::SetPalette}\label{wxbitmapsetpalette}
473
474 \func{void}{SetPalette}{\param{wxPalette* }{palette}}
475
476 Sets the associated palette: it will be deleted in the wxBitmap
477 destructor, so if you do not wish it to be deleted automatically,
478 reset the palette to NULL before the bitmap is deleted.
479
480 \wxheading{Parameters}
481
482 \docparam{palette}{The palette to set.}
483
484 \wxheading{Remarks}
485
486 The bitmap object owns the palette once this has been called.
487
488 \wxheading{See also}
489
490 \helpref{wxPalette}{wxpalette}
491
492 \membersection{wxBitmap::SetWidth}
493
494 \func{void}{SetWidth}{\param{int }{width}}
495
496 Sets the width member (does not affect the bitmap data).
497
498 \wxheading{Parameters}
499
500 \docparam{width}{Bitmap width in pixels.}
501
502 \membersection{wxBitmap::operator $=$}
503
504 \func{wxBitmap\& }{operator $=$}{\param{const wxBitmap\& }{bitmap}}
505
506 Assignment operator. This operator does not copy any data, but instead
507 passes a pointer to the data in {\it bitmap} and increments a reference
508 counter. It is a fast operation.
509
510 \wxheading{Parameters}
511
512 \docparam{bitmap}{Bitmap to assign.}
513
514 \wxheading{Return value}
515
516 Returns 'this' object.
517
518 \membersection{wxBitmap::operator $==$}
519
520 \func{bool}{operator $==$}{\param{const wxBitmap\& }{bitmap}}
521
522 Equality operator. This operator tests whether the internal data pointers are
523 equal (a fast test).
524
525 \wxheading{Parameters}
526
527 \docparam{bitmap}{Bitmap to compare with 'this'}
528
529 \wxheading{Return value}
530
531 Returns TRUE if the bitmaps were effectively equal, FALSE otherwise.
532
533 \membersection{wxBitmap::operator $!=$}
534
535 \func{bool}{operator $!=$}{\param{const wxBitmap\& }{bitmap}}
536
537 Inequality operator. This operator tests whether the internal data pointers are
538 unequal (a fast test).
539
540 \wxheading{Parameters}
541
542 \docparam{bitmap}{Bitmap to compare with 'this'}
543
544 \wxheading{Return value}
545
546 Returns TRUE if the bitmaps were unequal, FALSE otherwise.
547
548 \section{\class{wxBitmapHandler}}\label{wxbitmaphandler}
549
550 \overview{Overview}{wxbitmapoverview}
551
552 This is the base class for implementing bitmap file loading/saving, and bitmap creation from data.
553 It is used within wxBitmap and is not normally seen by the application.
554
555 If you wish to extend the capabilities of wxBitmap, derive a class from wxBitmapHandler
556 and add the handler using \helpref{wxBitmap::AddHandler}{wxbitmapaddhandler} in your
557 application initialisation.
558
559 \wxheading{Derived from}
560
561 \helpref{wxObject}{wxobject}
562
563 \wxheading{Include files}
564
565 <wx/bitmap.h>
566
567 \wxheading{See also}
568
569 \helpref{wxBitmap}{wxbitmap}, \helpref{wxIcon}{wxicon}, \helpref{wxCursor}{wxcursor}
570
571 \latexignore{\rtfignore{\wxheading{Members}}}
572
573 \membersection{wxBitmapHandler::wxBitmapHandler}\label{wxbitmaphandlerconstr}
574
575 \func{}{wxBitmapHandler}{\void}
576
577 Default constructor. In your own default constructor, initialise the members
578 m\_name, m\_extension and m\_type.
579
580 \membersection{wxBitmapHandler::\destruct{wxBitmapHandler}}
581
582 \func{}{\destruct{wxBitmapHandler}}{\void}
583
584 Destroys the wxBitmapHandler object.
585
586 \membersection{wxBitmapHandler::Create}
587
588 \func{virtual bool}{Create}{\param{wxBitmap* }{bitmap}, \param{void*}{ data}, \param{int}{ type}, \param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
589
590 Creates a bitmap from the given data, which can be of arbitrary type. The wxBitmap object {\it bitmap} is
591 manipulated by this function.
592
593 \wxheading{Parameters}
594
595 \docparam{bitmap}{The wxBitmap object.}
596
597 \docparam{width}{The width of the bitmap in pixels.}
598
599 \docparam{height}{The height of the bitmap in pixels.}
600
601 \docparam{depth}{The depth of the bitmap in pixels. If this is -1, the screen depth is used.}
602
603 \docparam{data}{Data whose type depends on the value of {\it type}.}
604
605 \docparam{type}{A bitmap type identifier - see \helpref{wxBitmapHandler::wxBitmapHandler}{wxbitmapconstr} for a list
606 of possible values.}
607
608 \wxheading{Return value}
609
610 TRUE if the call succeeded, FALSE otherwise (the default).
611
612 \membersection{wxBitmapHandler::GetName}
613
614 \constfunc{wxString}{GetName}{\void}
615
616 Gets the name of this handler.
617
618 \membersection{wxBitmapHandler::GetExtension}
619
620 \constfunc{wxString}{GetExtension}{\void}
621
622 Gets the file extension associated with this handler.
623
624 \membersection{wxBitmapHandler::GetType}
625
626 \constfunc{long}{GetType}{\void}
627
628 Gets the bitmap type associated with this handler.
629
630 \membersection{wxBitmapHandler::LoadFile}\label{wxbitmaphandlerloadfile}
631
632 \func{bool}{LoadFile}{\param{wxBitmap* }{bitmap}, \param{const wxString\&}{ name}, \param{long}{ type}}
633
634 Loads a bitmap from a file or resource, putting the resulting data into {\it bitmap}.
635
636 \wxheading{Parameters}
637
638 \docparam{bitmap}{The bitmap object which is to be affected by this operation.}
639
640 \docparam{name}{Either a filename or a Windows resource name.
641 The meaning of {\it name} is determined by the {\it type} parameter.}
642
643 \docparam{type}{See \helpref{wxBitmap::wxBitmap}{wxbitmapconstr} for values this can take.}
644
645 \wxheading{Return value}
646
647 TRUE if the operation succeeded, FALSE otherwise.
648
649 \wxheading{See also}
650
651 \helpref{wxBitmap::LoadFile}{wxbitmaploadfile}\\
652 \helpref{wxBitmap::SaveFile}{wxbitmapsavefile}\\
653 \helpref{wxBitmapHandler::SaveFile}{wxbitmaphandlersavefile}
654
655 \membersection{wxBitmapHandler::SaveFile}\label{wxbitmaphandlersavefile}
656
657 \func{bool}{SaveFile}{\param{wxBitmap* }{bitmap}, \param{const wxString\& }{name}, \param{int}{ type}, \param{wxPalette* }{palette = NULL}}
658
659 Saves a bitmap in the named file.
660
661 \wxheading{Parameters}
662
663 \docparam{bitmap}{The bitmap object which is to be affected by this operation.}
664
665 \docparam{name}{A filename. The meaning of {\it name} is determined by the {\it type} parameter.}
666
667 \docparam{type}{See \helpref{wxBitmap::wxBitmap}{wxbitmapconstr} for values this can take.}
668
669 \docparam{palette}{An optional palette used for saving the bitmap.}
670
671 \wxheading{Return value}
672
673 TRUE if the operation succeeded, FALSE otherwise.
674
675 \wxheading{See also}
676
677 \helpref{wxBitmap::LoadFile}{wxbitmaploadfile}\\
678 \helpref{wxBitmap::SaveFile}{wxbitmapsavefile}\\
679 \helpref{wxBitmapHandler::LoadFile}{wxbitmaphandlerloadfile}
680
681 \membersection{wxBitmapHandler::SetName}
682
683 \func{void}{SetName}{\param{const wxString\& }{name}}
684
685 Sets the handler name.
686
687 \wxheading{Parameters}
688
689 \docparam{name}{Handler name.}
690
691 \membersection{wxBitmapHandler::SetExtension}
692
693 \func{void}{SetExtension}{\param{const wxString\& }{extension}}
694
695 Sets the handler extension.
696
697 \wxheading{Parameters}
698
699 \docparam{extension}{Handler extension.}
700
701 \membersection{wxBitmapHandler::SetType}
702
703 \func{void}{SetType}{\param{long }{type}}
704
705 Sets the handler type.
706
707 \wxheading{Parameters}
708
709 \docparam{name}{Handler type.}
710
711