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