]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/bitmap.tex
documented wxCONFIG_USE_RELATIVE_PATH
[wxWidgets.git] / docs / latex / wx / bitmap.tex
CommitLineData
a660d684
KB
1\section{\class{wxBitmap}}\label{wxbitmap}
2
3%\overview{Overview}{wxbitmapoverview}
4%
5This class encapsulates the concept of a platform-dependent bitmap,
6either monochrome or colour.
7
8\wxheading{Derived from}
9
10\helpref{wxGDIObject}{wxgdiobject}\\
11\helpref{wxObject}{wxobject}
12
954b8ae6
JS
13\wxheading{Include files}
14
15<wx/bitmap.h>
16
20e85460
JS
17\wxheading{Predefined objects}
18
19Objects:
20
21{\bf wxNullBitmap}
22
a660d684
KB
23\wxheading{See also}
24
06d20283
RD
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},
2fd284a4 29\helpref{wxMemoryDC}{wxmemorydc}
a660d684
KB
30
31\latexignore{\rtfignore{\wxheading{Members}}}
32
33\membersection{wxBitmap::wxBitmap}\label{wxbitmapconstr}
34
35\func{}{wxBitmap}{\void}
36
37Default constructor.
38
39\func{}{wxBitmap}{\param{const wxBitmap\& }{bitmap}}
40
1e6d9499 41Copy constructor.
a660d684 42
eaaa6a06 43\func{}{wxBitmap}{\param{void*}{ data}, \param{int}{ type}, \param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
a660d684
KB
44
45Creates a bitmap from the given data, which can be of arbitrary type.
46
eaaa6a06
JS
47\func{}{wxBitmap}{\param{const char}{ bits[]}, \param{int}{ width}, \param{int}{ height}\\
48 \param{int}{ depth = 1}}
a660d684
KB
49
50Creates a bitmap from an array of bits.
51
eaaa6a06 52\func{}{wxBitmap}{\param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
a660d684
KB
53
54Creates a new bitmap.
55
56\func{}{wxBitmap}{\param{const char**}{ bits}}
57
58Creates a bitmap from XPM data.
59
eaaa6a06 60\func{}{wxBitmap}{\param{const wxString\& }{name}, \param{long}{ type}}
a660d684
KB
61
62Loads 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
73screen is used.}
74
75\docparam{name}{This can refer to a resource name under MS Windows, or a filename under MS Windows and X.
1e6d9499 76Its meaning is determined by the {\it type} parameter.}
a660d684
KB
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
90The validity of these flags depends on the platform and wxWindows configuration.
2fd284a4
JS
91If all possible wxWindows settings are used, the Windows platform supports BMP file, BMP resource,
92XPM data, and XPM. Under wxGTK, the available formats are BMP file, XPM data, XPM file, and PNG file.
93Under wxMotif, the available formats are XBM data, XBM file, XPM data, XPM file.}
a660d684
KB
94
95\wxheading{Remarks}
96
97The first form constructs a bitmap object with no data; an assignment or another member function such as Create
98or LoadFile must be called subsequently.
99
100The second and third forms provide copy constructors. Note that these do not copy the
101bitmap data, but instead a pointer to the data, keeping a reference count. They are therefore
102very efficient operations.
103
104The fourth form constructs a bitmap from data whose type and value depends on
105the value of the {\it type} argument.
106
107The fifth form constructs a (usually monochrome) bitmap from an array of pixel values, under both
108X and Windows.
109
110The sixth form constructs a new bitmap.
111
112The seventh form constructs a bitmap from pixmap (XPM) data, if wxWindows has been configured
113to incorporate this feature.
114
115To use this constructor, you must first include an XPM file. For
116example, assuming that the file {\tt mybitmap.xpm} contains an XPM array
117of character pointers called mybitmap:
118
119\begin{verbatim}
120#include "mybitmap.xpm"
121
122...
123
124wxBitmap *bitmap = new wxBitmap(mybitmap);
125\end{verbatim}
126
127The eighth form constructs a bitmap from a file or resource. {\it name} can refer
128to a resource name under MS Windows, or a filename under MS Windows and X.
129
130Under Windows, {\it type} defaults to wxBITMAP\_TYPE\_BMP\_RESOURCE.
2fd284a4 131Under X, {\it type} defaults to wxBITMAP\_TYPE\_XPM.
a660d684
KB
132
133\wxheading{See also}
134
135\helpref{wxBitmap::LoadFile}{wxbitmaploadfile}
136
06d20283
RD
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
141reference, so Python won't call the destructor, this is good for toolbars
142and such where the parent will manage the bitmap.}
f899db6d 143\twocolitem{\bf{wxEmptyBitmap(width, height, depth = -1)}}{Creates an
06d20283
RD
144empty bitmap with the given specifications}
145\end{twocollist}}
146}
147
a660d684
KB
148\membersection{wxBitmap::\destruct{wxBitmap}}
149
150\func{}{\destruct{wxBitmap}}{\void}
151
152Destroys the wxBitmap object and possibly the underlying bitmap data.
153Because reference counting is used, the bitmap may not actually be
154destroyed at this point - only when the reference count is zero will the
155data be deleted.
156
157If the application omits to delete the bitmap explicitly, the bitmap will be
158destroyed automatically by wxWindows when the application exits.
159
160Do 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
166Adds 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
169of 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
179Deletes all bitmap handlers.
180
181This function is called by wxWindows on exit.
182
183\membersection{wxBitmap::Create}
184
eaaa6a06 185\func{virtual bool}{Create}{\param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
a660d684
KB
186
187Creates a fresh bitmap. If the final argument is omitted, the display depth of
188the screen is used.
189
eaaa6a06 190\func{virtual bool}{Create}{\param{void*}{ data}, \param{int}{ type}, \param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
a660d684
KB
191
192Creates 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
205of possible values.}
206
207\wxheading{Return value}
208
209TRUE if the call succeeded, FALSE otherwise.
210
211\wxheading{Remarks}
212
213The first form works on all platforms. The portability of the second form depends on the
214type 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
224Finds the handler with the given name.
225
226\func{static wxBitmapHandler*}{FindHandler}{\param{const wxString\& }{extension}, \param{long}{ bitmapType}}
227
228Finds the handler associated with the given extension and type.
229
230\func{static wxBitmapHandler*}{FindHandler}{\param{long }{bitmapType}}
231
232Finds 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
242A 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
252Gets the colour depth of the bitmap. A value of 1 indicates a
253monochrome bitmap.
254
255\membersection{wxBitmap::GetHandlers}
256
257\func{static wxList\&}{GetHandlers}{\void}
258
259Returns 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
269Gets the height of the bitmap in pixels.
270
271\membersection{wxBitmap::GetPalette}\label{wxbitmapgetpalette}
272
273\constfunc{wxPalette*}{GetPalette}{\void}
274
275Gets the associated palette (if any) which may have been loaded from a file
276or 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
1e6d9499 286Gets the associated mask (if any) which may have been loaded from a file
a660d684
KB
287or 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
297Gets 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
307Adds the standard bitmap format handlers, which, depending on wxWindows
308configuration, can be handlers for Windows bitmap, Windows bitmap resource, and XPM.
309
310This 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
320Adds 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
323of 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
eaaa6a06 331\func{bool}{LoadFile}{\param{const wxString\&}{ name}, \param{long}{ type}}
a660d684
KB
332
333Loads a bitmap from a file or resource.
334
335\wxheading{Parameters}
336
337\docparam{name}{Either a filename or a Windows resource name.
338The 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
351The validity of these flags depends on the platform and wxWindows configuration.}
352
353\wxheading{Return value}
354
355TRUE if the operation succeeded, FALSE otherwise.
356
357\wxheading{Remarks}
358
359A palette may be associated with the bitmap if one exists (especially for
360colour Windows bitmaps), and if the code supports it. You can check
361if 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
371Returns TRUE if bitmap data is present.
372
373\membersection{wxBitmap::RemoveHandler}
374
375\func{static bool}{RemoveHandler}{\param{const wxString\& }{name}}
376
377Finds the handler with the given name, and removes it. The handler
378is not deleted.
379
380\docparam{name}{The handler name.}
381
382\wxheading{Return value}
383
384TRUE 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
394Saves 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
410The validity of these flags depends on the platform and wxWindows configuration.}
411
5b6aa0ff
JS
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.
a660d684
KB
415
416\wxheading{Return value}
417
418TRUE if the operation succeeded, FALSE otherwise.
419
420\wxheading{Remarks}
421
422Depending 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
432Sets 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
442Sets 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
452Sets the mask for this bitmap.
453
454\wxheading{Remarks}
455
456The 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
466Sets 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
476Sets the associated palette: it will be deleted in the wxBitmap
477destructor, so if you do not wish it to be deleted automatically,
478reset 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
486The 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
496Sets 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
506Assignment operator. This operator does not copy any data, but instead
507passes a pointer to the data in {\it bitmap} and increments a reference
508counter. It is a fast operation.
509
510\wxheading{Parameters}
511
512\docparam{bitmap}{Bitmap to assign.}
513
514\wxheading{Return value}
515
516Returns 'this' object.
517
518\membersection{wxBitmap::operator $==$}
519
520\func{bool}{operator $==$}{\param{const wxBitmap\& }{bitmap}}
521
522Equality operator. This operator tests whether the internal data pointers are
523equal (a fast test).
524
525\wxheading{Parameters}
526
527\docparam{bitmap}{Bitmap to compare with 'this'}
528
529\wxheading{Return value}
530
531Returns TRUE if the bitmaps were effectively equal, FALSE otherwise.
532
533\membersection{wxBitmap::operator $!=$}
534
535\func{bool}{operator $!=$}{\param{const wxBitmap\& }{bitmap}}
536
537Inequality operator. This operator tests whether the internal data pointers are
538unequal (a fast test).
539
540\wxheading{Parameters}
541
542\docparam{bitmap}{Bitmap to compare with 'this'}
543
544\wxheading{Return value}
545
546Returns TRUE if the bitmaps were unequal, FALSE otherwise.
547
548\section{\class{wxBitmapHandler}}\label{wxbitmaphandler}
549
550\overview{Overview}{wxbitmapoverview}
551
552This is the base class for implementing bitmap file loading/saving, and bitmap creation from data.
553It is used within wxBitmap and is not normally seen by the application.
554
555If you wish to extend the capabilities of wxBitmap, derive a class from wxBitmapHandler
556and add the handler using \helpref{wxBitmap::AddHandler}{wxbitmapaddhandler} in your
557application initialisation.
558
559\wxheading{Derived from}
560
561\helpref{wxObject}{wxobject}
562
954b8ae6
JS
563\wxheading{Include files}
564
565<wx/bitmap.h>
566
a660d684
KB
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
577Default constructor. In your own default constructor, initialise the members
578m\_name, m\_extension and m\_type.
579
580\membersection{wxBitmapHandler::\destruct{wxBitmapHandler}}
581
582\func{}{\destruct{wxBitmapHandler}}{\void}
583
584Destroys the wxBitmapHandler object.
585
586\membersection{wxBitmapHandler::Create}
587
eaaa6a06 588\func{virtual bool}{Create}{\param{wxBitmap* }{bitmap}, \param{void*}{ data}, \param{int}{ type}, \param{int}{ width}, \param{int}{ height}, \param{int}{ depth = -1}}
a660d684
KB
589
590Creates a bitmap from the given data, which can be of arbitrary type. The wxBitmap object {\it bitmap} is
591manipulated 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
606of possible values.}
607
608\wxheading{Return value}
609
610TRUE if the call succeeded, FALSE otherwise (the default).
611
612\membersection{wxBitmapHandler::GetName}
613
614\constfunc{wxString}{GetName}{\void}
615
616Gets the name of this handler.
617
618\membersection{wxBitmapHandler::GetExtension}
619
620\constfunc{wxString}{GetExtension}{\void}
621
622Gets the file extension associated with this handler.
623
624\membersection{wxBitmapHandler::GetType}
625
626\constfunc{long}{GetType}{\void}
627
628Gets the bitmap type associated with this handler.
629
630\membersection{wxBitmapHandler::LoadFile}\label{wxbitmaphandlerloadfile}
631
eaaa6a06 632\func{bool}{LoadFile}{\param{wxBitmap* }{bitmap}, \param{const wxString\&}{ name}, \param{long}{ type}}
a660d684
KB
633
634Loads 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.
641The 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
647TRUE 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
659Saves 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
5b6aa0ff 669\docparam{palette}{An optional palette used for saving the bitmap.}
a660d684
KB
670
671\wxheading{Return value}
672
673TRUE 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
685Sets 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
695Sets 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
705Sets the handler type.
706
707\wxheading{Parameters}
708
709\docparam{name}{Handler type.}
710
711