]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/image.tex
Add wxImage::InitAllHandlers()
[wxWidgets.git] / docs / latex / wx / image.tex
1 \section{\class{wxImage}}\label{wximage}
2
3 This class encapsulates a platform-independent image. An image can be created
4 from data, or using the constructor taking a wxBitmap object. An image
5 can be loaded from a file in a variety of formats, and is extensible to new formats
6 via image format handlers. Functions are available to set and get image bits, so
7 it can be used for basic image manipulation.
8
9 A wxImage cannot (currently) be drawn directly to a wxDC. Instead, a platform-specific
10 wxBitmap object must be created from it, and that bitmap drawn on the wxDC, using
11 wxDC::DrawBitmap.
12
13 \wxheading{Derived from}
14
15 \helpref{wxObject}{wxobject}
16
17 \wxheading{Include files}
18
19 <wx/image.h>
20
21 \wxheading{See also}
22
23 \helpref{wxBitmap}{wxbitmap}
24
25 \latexignore{\rtfignore{\wxheading{Members}}}
26
27 \membersection{wxImage::wxImage}\label{wximageconstr}
28
29 \func{}{wxImage}{\void}
30
31 Default constructor.
32
33 \func{}{wxImage}{\param{const wxImage\& }{image}}
34
35 Copy constructor.
36
37 \func{}{wxImage}{\param{const wxBitmap\&}{ bitmap}}
38
39 Constructs an image from a platform-dependent bitmap. This preserves
40 mask information so that bitmaps and images can be converted back
41 and forth without loss in that respect.
42
43 \func{}{wxImage}{\param{int}{ width}, \param{int}{ height}}
44
45 Creates an image with the given width and height.
46
47 \func{}{wxImage}{\param{const wxString\& }{name}, \param{long}{ type = wxBITMAP\_TYPE\_PNG}}
48
49 \func{}{wxImage}{\param{const wxString\& }{name}, \param{const wxString\&}{ mimetype}}
50
51 Loads an image from a file.
52
53 \func{}{wxImage}{\param{wxInputStream\& }{stream}, \param{long}{ type = wxBITMAP\_TYPE\_PNG}}
54
55 \func{}{wxImage}{\param{wxInputStream\& }{stream}, \param{const wxString\&}{ mimetype}}
56
57 Loads an image from an input stream.
58
59 \wxheading{Parameters}
60
61 \docparam{width}{Specifies the width of the image.}
62
63 \docparam{height}{Specifies the height of the image.}
64
65 \docparam{name}{This refers to an image filename. Its meaning is determined by the {\it type} parameter.}
66
67 \docparam{stream}{This refers to an input stream. Its meaning is determined by the {\it type} parameter. It is equal to loading from file except that you provide opened stream (file, HTTP or any other custom class).}
68
69 \docparam{type}{May be one of the following:
70
71 \twocolwidtha{5cm}%
72 \begin{twocollist}
73 \twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_BMP}}}{Load a Windows bitmap file.}
74 \twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_PNG}}}{Load a PNG bitmap file.}
75 \twocolitem{{\bf \indexit{wxBITMAP\_TYPE\_JPEG}}}{Load a JPEG bitmap file.}
76 \end{twocollist}
77
78 The validity of these flags depends on the platform and wxWindows configuration.
79 If all possible wxWindows settings are used, the loading a BMP (Windows bitmap) file,
80 a PNG (portable network graphics) file and a JPEG file is supported on all platforms that
81 implement wxImage.}
82
83 \docparam{mimetype}{MIME type string (for example 'image/jpeg')}
84
85 Note : you must call wxImage::AddHandler(new wxJPEGHandler) during application
86 initialization in order to work with JPEGs.
87
88 \wxheading{See also}
89
90 \helpref{wxImage::LoadFile}{wximageloadfile}
91
92 \pythonnote{Constructors supported by wxPython are:\par
93 \indented{2cm}{\begin{twocollist}
94 \twocolitem{\bf{wxImage(name, flag)}}{Loads an image from a file}
95 \twocolitem{\bf{wxNullImage()}}{Create a null image (has no size or
96 image data)}
97 \twocolitem{\bf{wxEmptyImage(width, height)}}{Creates an empty image
98 of the given size}
99 \twocolitem{\bf{wxImageFromMime(name, mimetype}}{Creates an image from
100 the given file of the given mimetype}
101 \twocolitem{\bf{wxImageFromBitmap(bitmap)}}{Creates an image from a
102 platform-dependent bitmap}
103 \end{twocollist}}
104 }
105
106 \membersection{wxImage::\destruct{wxImage}}
107
108 \func{}{\destruct{wxImage}}{\void}
109
110 Destructor.
111
112 \membersection{wxImage::AddHandler}\label{wximageaddhandler}
113
114 \func{static void}{AddHandler}{\param{wxImageHandler*}{ handler}}
115
116 Adds a handler to the end of the static list of format handlers.
117
118 \docparam{handler}{A new image format handler object. There is usually only one instance
119 of a given handler class in an application session.}
120
121 \wxheading{See also}
122
123 \helpref{wxImageHandler}{wximagehandler}
124
125 \pythonnote{In wxPython this static method is named \tt{wxImage_AddHandler}.}
126 \membersection{wxImage::CleanUpHandlers}
127
128 \func{static void}{CleanUpHandlers}{\void}
129
130 Deletes all image handlers.
131
132 This function is called by wxWindows on exit.
133
134 \membersection{wxImage::ConvertToBitmap}\label{wximageconverttobitmap}
135
136 \constfunc{wxBitmap}{ConvertToBitmap}{\void}
137
138 Converts the image to a platform-specific bitmap object. This has to be done
139 to actually display an image as you cannot draw an image directly on a window.
140 The resulting bitmap will use the colour depth of the current system which entails
141 that a (crude) colour reduction has to take place. When in 8-bit mode, this
142 routine will use a color cube created on program start-up to look up colors.
143 Still, the image quality won't be perfect for photo images.
144
145 \membersection{wxImage::Create}\label{wximagecreate}
146
147 \func{bool}{Create}{\param{int}{ width}, \param{int}{ height}}
148
149 Creates a fresh image.
150
151 \wxheading{Parameters}
152
153 \docparam{width}{The width of the image in pixels.}
154
155 \docparam{height}{The height of the image in pixels.}
156
157 \wxheading{Return value}
158
159 TRUE if the call succeeded, FALSE otherwise.
160
161 \membersection{wxImage::Destroy}\label{wximagedestroy}
162
163 \func{bool}{Destroy}{\void}
164
165 Destroys the image data.
166
167 \membersection{wxImage::FindHandler}
168
169 \func{static wxImageHandler*}{FindHandler}{\param{const wxString\& }{name}}
170
171 Finds the handler with the given name.
172
173 \func{static wxImageHandler*}{FindHandler}{\param{const wxString\& }{extension}, \param{long}{ imageType}}
174
175 Finds the handler associated with the given extension and type.
176
177 \func{static wxImageHandler*}{FindHandler}{\param{long }{imageType}}
178
179 Finds the handler associated with the given image type.
180
181 \func{static wxImageHandler*}{FindHandlerMime}{\param{const wxString\& }{mimetype}}
182
183 Finds the handler associated with the given MIME type.
184
185 \docparam{name}{The handler name.}
186
187 \docparam{extension}{The file extension, such as ``bmp".}
188
189 \docparam{imageType}{The image type, such as wxBITMAP\_TYPE\_BMP.}
190
191 \docparam{mimetype}{MIME type.}
192
193 \wxheading{Return value}
194
195 A pointer to the handler if found, NULL otherwise.
196
197 \wxheading{See also}
198
199 \helpref{wxImageHandler}{wximagehandler}
200
201 \membersection{wxImage::GetBlue}\label{wximagegetblue}
202
203 \constfunc{unsigned char}{GetBlue}{\param{int}{ x}, \param{int}{ y}}
204
205 Returns the blue intensity at the given coordinate.
206
207 \membersection{wxImage::GetData}\label{wximagegetdata}
208
209 \constfunc{unsigned char*}{GetData}{\void}
210
211 Returns the image data as an array. This is most often used when doing
212 direct image manipulation. The return value points to an array of
213 chararcters in RGBGBRGB... format.
214
215 \membersection{wxImage::GetGreen}\label{wximagegetgreen}
216
217 \constfunc{unsigned char}{GetGreen}{\param{int}{ x}, \param{int}{ y}}
218
219 Returns the green intensity at the given coordinate.
220
221 \membersection{wxImage::GetRed}\label{wximagegetred}
222
223 \constfunc{unsigned char}{GetRed}{\param{int}{ x}, \param{int}{ y}}
224
225 Returns the red intensity at the given coordinate.
226
227 \membersection{wxImage::GetHandlers}
228
229 \func{static wxList\&}{GetHandlers}{\void}
230
231 Returns the static list of image format handlers.
232
233 \wxheading{See also}
234
235 \helpref{wxImageHandler}{wximagehandler}
236
237 \membersection{wxImage::GetHeight}\label{wximagegetheight}
238
239 \constfunc{int}{GetHeight}{\void}
240
241 Gets the height of the image in pixels.
242
243 \membersection{wxImage::GetMaskBlue}\label{wximagegetmaskblue}
244
245 \constfunc{unsigned char}{GetMaskBlue}{\void}
246
247 Gets the blue value of the mask colour.
248
249 \membersection{wxImage::GetMaskGreen}\label{wximagegetmaskgreen}
250
251 \constfunc{unsigned char}{GetMaskGreen}{\void}
252
253 Gets the green value of the mask colour.
254
255 \membersection{wxImage::GetMaskRed}\label{wximagegetmaskred}
256
257 \constfunc{unsigned char}{GetMaskRed}{\void}
258
259 Gets the red value of the mask colour.
260
261 \membersection{wxImage::GetWidth}\label{wximagegetwidth}
262
263 \constfunc{int}{GetWidth}{\void}
264
265 Gets the width of the image in pixels.
266
267 \wxheading{See also}
268
269 \helpref{wxImage::GetHeight}{wximagegetheight}
270
271 \membersection{wxImage::HasMask}\label{wximagehasmask}
272
273 \constfunc{bool}{HasMask}{\void}
274
275 Returns TRUE if there is a mask active, FALSE otherwise.
276
277 \membersection{wxImage::InitAllHandlers}\label{wximageinitallhandlers}
278
279 \func{static void}{InitAllHandlers}{\void}
280
281 Adds some common image format handlers, which, depending on wxWindows
282 configuration, can be handlers for BMP (loading) (always installed), GIF
283 (loading and saving), PCX (loading and saving), PNM (loading and saving as raw
284 rgb), PNG (loading and saving), JPEG (loading and saving), file formats.
285
286 \wxheading{See also}
287
288 \helpref{wxImageHandler}{wximagehandler}
289
290 \membersection{wxImage::InitStandardHandlers}
291
292 \func{static void}{InitStandardHandlers}{\void}
293
294 Internal use only. Adds standard image format handlers. It only install BMP
295 for the time being, which is use by wxBitmap.
296
297 This function is called by wxWindows on startup, and shouldn't be called by
298 the user.
299
300 \wxheading{See also}
301
302 \helpref{wxImageHandler}{wximagehandler}
303 \helpref{wxImage::InitAllHandlers}{wximageinitallhandlers}
304
305 \membersection{wxImage::InsertHandler}
306
307 \func{static void}{InsertHandler}{\param{wxImageHandler*}{ handler}}
308
309 Adds a handler at the start of the static list of format handlers.
310
311 \docparam{handler}{A new image format handler object. There is usually only one instance
312 of a given handler class in an application session.}
313
314 \wxheading{See also}
315
316 \helpref{wxImageHandler}{wximagehandler}
317
318 \membersection{wxImage::LoadFile}\label{wximageloadfile}
319
320 \func{bool}{LoadFile}{\param{const wxString\&}{ name}, \param{long}{ type = wxBITMAP\_TYPE\_ANY}}
321
322 \func{bool}{LoadFile}{\param{const wxString\&}{ name}, \param{const wxString\&}{ mimetype}}
323
324 Loads an image from a file. If no handler type is provided, the library will
325 try to use wxBITMAP\_TYPE\_BMP or all known handlers previously installed
326 through a call to \helpref{wxImage::InitAllHandlers}{wximageinitallhandlers}.
327
328 \func{bool}{LoadFile}{\param{wxInputStream\&}{ stream}, \param{long}{ type}}
329
330 \func{bool}{LoadFile}{\param{wxInputStream\&}{ stream}, \param{const wxString\&}{ mimetype}}
331
332 Loads an image from an input stream.
333
334 \wxheading{Parameters}
335
336 \docparam{name}{A filename.
337 The meaning of {\it name} is determined by the {\it type} parameter.}
338
339 \docparam{stream}{An input stream.
340 The meaning of {\it stream} data is determined by the {\it type} parameter.}
341
342 \docparam{type}{One of the following values:
343
344 \twocolwidtha{5cm}%
345 \begin{twocollist}
346 \twocolitem{{\bf wxBITMAP\_TYPE\_BMP}}{Load a Windows image file.}
347 \twocolitem{{\bf wxBITMAP\_TYPE\_GIF}}{Load a GIF image file.}
348 \twocolitem{{\bf wxBITMAP\_TYPE\_JPEG}}{Load a JPEG image file.}
349 \twocolitem{{\bf wxBITMAP\_TYPE\_PCX}}{Load a PCX image file.}
350 \twocolitem{{\bf wxBITMAP\_TYPE\_PNG}}{Load a PNG image file.}
351 \twocolitem{{\bf wxBITMAP\_TYPE\_PNM}}{Load a PNM image file.}
352 \end{twocollist}
353
354 The validity of these flags depends on the platform and wxWindows configuration.}
355
356 \docparam{mimetype}{MIME type string (for example 'image/jpeg')}
357
358 \wxheading{Return value}
359
360 TRUE if the operation succeeded, FALSE otherwise.
361
362 \wxheading{See also}
363
364 \helpref{wxImage::SaveFile}{wximagesavefile}
365
366 \pythonnote{In place of a single overloaded method name, wxPython
367 implements the following methods:\par
368 \indented{2cm}{\begin{twocollist}
369 \twocolitem{\bf{LoadFile(filename, type)}}{Loads an image of the given
370 type from a file}
371 \twocolitem{\bf{LoadMimeFile(filename, mimetype)}}{Loads an image of the given
372 mimetype from a file}
373 \end{twocollist}}
374 }
375
376
377 \membersection{wxImage::Ok}\label{wximageok}
378
379 \constfunc{bool}{Ok}{\void}
380
381 Returns TRUE if image data is present.
382
383 \membersection{wxImage::RemoveHandler}
384
385 \func{static bool}{RemoveHandler}{\param{const wxString\& }{name}}
386
387 Finds the handler with the given name, and removes it. The handler
388 is not deleted.
389
390 \docparam{name}{The handler name.}
391
392 \wxheading{Return value}
393
394 TRUE if the handler was found and removed, FALSE otherwise.
395
396 \wxheading{See also}
397
398 \helpref{wxImageHandler}{wximagehandler}
399
400 \membersection{wxImage::SaveFile}\label{wximagesavefile}
401
402 \func{bool}{SaveFile}{\param{const wxString\& }{name}, \param{int}{ type}}
403
404 \func{bool}{SaveFile}{\param{const wxString\& }{name}, \param{const wxString\&}{ mimetype}}
405
406 Saves a image in the named file.
407
408 \func{bool}{SaveFile}{\param{wxOutputStream\& }{stream}, \param{int}{ type}}
409
410 \func{bool}{SaveFile}{\param{wxOutputStream\& }{stream}, \param{const wxString\&}{ mimetype}}
411
412 Saves a image in the given stream.
413
414 \wxheading{Parameters}
415
416 \docparam{name}{A filename. The meaning of {\it name} is determined by the {\it type} parameter.}
417
418 \docparam{stream}{An output stream. The meaning of {\it stream} is determined by the {\it type} parameter.}
419
420 \docparam{type}{Currently two types can be used:
421
422 \twocolwidtha{5cm}%
423 \begin{twocollist}
424 \twocolitem{{\bf wxBITMAP\_TYPE\_PNG}}{Save a PNG image file.}
425 \twocolitem{{\bf wxBITMAP\_TYPE\_JPEG}}{Save a JPEG image file.}
426 \end{twocollist}
427
428 The validity of these flags depends on the platform and wxWindows configuration
429 as well as user-added handlers.}
430
431 \docparam{mimetype}{MIME type.}
432
433 \wxheading{Return value}
434
435 TRUE if the operation succeeded, FALSE otherwise.
436
437 \wxheading{Remarks}
438
439 Depending on how wxWindows has been configured, not all formats may be available.
440
441 \wxheading{See also}
442
443 \helpref{wxImage::LoadFile}{wximageloadfile}
444
445 \pythonnote{In place of a single overloaded method name, wxPython
446 implements the following methods:\par
447 \indented{2cm}{\begin{twocollist}
448 \twocolitem{\bf{SaveFile(filename, type)}}{Saves the image using the given
449 type to the named file}
450 \twocolitem{\bf{SaveMimeFile(filename, mimetype)}}{Saves the image using the given
451 mimetype to the named file}
452 \end{twocollist}}
453 }
454
455 \membersection{wxImage::Rescale}\label{wximagerescale}
456
457 \func{wxImage}{Rescale}{\param{int}{ width}, \param{int}{ height}}
458
459 Changes the size of the image in-place: after a call to this function, the
460 image will have the given width and height.
461
462 \wxheading{See also}
463
464 \helpref{Scale}{wximagescale}
465
466 \membersection{wxImage::Scale}\label{wximagescale}
467
468 \constfunc{wxImage}{Scale}{\param{int}{ width}, \param{int}{ height}}
469
470 Returns a scaled version of the image. This is also useful for
471 scaling bitmaps in general as the only other way to scale bitmaps
472 is to blit a wxMemoryDC into another wxMemoryDC.
473
474 NB: although Windows can do such scaling itself but in the GTK port, scaling
475 bitmaps is done using this routine internally.
476
477 Example:
478
479 \begin{verbatim}
480 // get the bitmap from somewhere
481 wxBitmap bmp = ...;
482
483 // rescale it to have size of 32*32
484 if ( bmp.GetWidth() != 32 || bmp.GetHeight() != 32 )
485 {
486 wxImage image(bmp);
487 bmp = image.Scale(32, 32).ConvertToBitmap();
488
489 // another possibility:
490 image.Rescale(32, 32);
491 bmp = image;
492 }
493
494 \end{verbatim}
495
496 \wxheading{See also}
497
498 \helpref{Rescale}{wximagerescale}
499
500 \membersection{wxImage::GetSubImage}\label{wximagegetsubimage}
501
502 \constfunc{wxImage}{GetSubImage}{\param{const wxRect&}{rect}}
503
504 Returns a sub image of the current one as long as the rect belongs entirely to
505 the image.
506
507 \membersection{wxImage::SetData}\label{wximagesetdata}
508
509 \func{void}{SetData}{\param{unsigned char*}{data}}
510
511 Sets the image data without performing checks. The data given must have
512 the size (width*height*3) or results will be unexpected. Don't use this
513 method if you aren't sure you know what you are doing.
514
515 \membersection{wxImage::SetMask}\label{wximagesetmask}
516
517 \func{void}{SetMask}{\param{bool}{ hasMask = TRUE}}
518
519 Specifies whether there is a mask or not. The area of the mask is determined by the current mask colour.
520
521 \membersection{wxImage::SetMaskColour}\label{wximagesetmaskcolour}
522
523 \func{void}{SetMaskColour}{\param{unsigned char }{red}, \param{unsigned char }{blue}, \param{unsigned char }{green}}
524
525 Sets the mask colour for this image (and tells the image to use the mask).
526
527 \membersection{wxImage::SetRGB}\label{wximagesetrgb}
528
529 \func{void}{SetRGB}{\param{int }{x}, \param{int }{y}, \param{unsigned char }{red}, \param{unsigned char }{blue}, \param{unsigned char }{green}}
530
531 Sets the pixel at the given coordinate. This routine performs bounds-checks
532 for the coordinate so it can be considered a safe way to manipulate the
533 data, but in some cases this might be too slow so that the data will have to
534 be set directly. In that case you have to get that data by calling GetData().
535
536 \membersection{wxImage::operator $=$}
537
538 \func{wxImage\& }{operator $=$}{\param{const wxImage\& }{image}}
539
540 Assignment operator. This operator does not copy any data, but instead
541 passes a pointer to the data in {\it image} and increments a reference
542 counter. It is a fast operation.
543
544 \wxheading{Parameters}
545
546 \docparam{image}{Image to assign.}
547
548 \wxheading{Return value}
549
550 Returns 'this' object.
551
552 \membersection{wxImage::operator $==$}
553
554 \func{bool}{operator $==$}{\param{const wxImage\& }{image}}
555
556 Equality operator. This operator tests whether the internal data pointers are
557 equal (a fast test).
558
559 \wxheading{Parameters}
560
561 \docparam{image}{Image to compare with 'this'}
562
563 \wxheading{Return value}
564
565 Returns TRUE if the images were effectively equal, FALSE otherwise.
566
567 \membersection{wxImage::operator $!=$}
568
569 \func{bool}{operator $!=$}{\param{const wxImage\& }{image}}
570
571 Inequality operator. This operator tests whether the internal data pointers are
572 unequal (a fast test).
573
574 \wxheading{Parameters}
575
576 \docparam{image}{Image to compare with 'this'}
577
578 \wxheading{Return value}
579
580 Returns TRUE if the images were unequal, FALSE otherwise.
581
582 \section{\class{wxImageHandler}}\label{wximagehandler}
583
584 This is the base class for implementing image file loading/saving, and image creation from data.
585 It is used within wxImage and is not normally seen by the application.
586
587 If you wish to extend the capabilities of wxImage, derive a class from wxImageHandler
588 and add the handler using \helpref{wxImage::AddHandler}{wximageaddhandler} in your
589 application initialisation.
590
591 \wxheading{Note (Legal Issue)}
592
593 This software is based in part on the work of the Independent JPEG Group.
594
595 (Applies when wxWindows is linked with JPEG support. wxJPEGHandler uses libjpeg
596 created by IJG.)
597
598 \wxheading{Derived from}
599
600 \helpref{wxObject}{wxobject}
601
602 \wxheading{Include files}
603
604 <wx/image.h>
605
606 \wxheading{See also}
607
608 \helpref{wxImage}{wximage}
609
610 \latexignore{\rtfignore{\wxheading{Members}}}
611
612 \membersection{wxImageHandler::wxImageHandler}\label{wximagehandlerconstr}
613
614 \func{}{wxImageHandler}{\void}
615
616 Default constructor. In your own default constructor, initialise the members
617 m\_name, m\_extension and m\_type.
618
619 \membersection{wxImageHandler::\destruct{wxImageHandler}}
620
621 \func{}{\destruct{wxImageHandler}}{\void}
622
623 Destroys the wxImageHandler object.
624
625 \membersection{wxImageHandler::GetName}
626
627 \constfunc{wxString}{GetName}{\void}
628
629 Gets the name of this handler.
630
631 \membersection{wxImageHandler::GetExtension}
632
633 \constfunc{wxString}{GetExtension}{\void}
634
635 Gets the file extension associated with this handler.
636
637 \membersection{wxImageHandler::GetType}
638
639 \constfunc{long}{GetType}{\void}
640
641 Gets the image type associated with this handler.
642
643 \membersection{wxImageHandler::GetMimeType}
644
645 \constfunc{wxString}{GetMimeType}{\void}
646
647 Gets the MIME type associated with this handler.
648
649 \membersection{wxImageHandler::LoadFile}\label{wximagehandlerloadfile}
650
651 \func{bool}{LoadFile}{\param{wxImage* }{image}, \param{wxInputStream\&}{ stream}}
652
653 Loads a image from a stream, putting the resulting data into {\it image}.
654
655 \wxheading{Parameters}
656
657 \docparam{image}{The image object which is to be affected by this operation.}
658
659 \docparam{stream}{Opened input stream.
660 The meaning of {\it stream} is determined by the {\it type} parameter.}
661
662 \wxheading{Return value}
663
664 TRUE if the operation succeeded, FALSE otherwise.
665
666 \wxheading{See also}
667
668 \helpref{wxImage::LoadFile}{wximageloadfile}\\
669 \helpref{wxImage::SaveFile}{wximagesavefile}\\
670 \helpref{wxImageHandler::SaveFile}{wximagehandlersavefile}
671
672 \membersection{wxImageHandler::SaveFile}\label{wximagehandlersavefile}
673
674 \func{bool}{SaveFile}{\param{wxImage* }{image}, \param{wxOutputStream\& }{stream}}
675
676 Saves a image in the output stream.
677
678 \wxheading{Parameters}
679
680 \docparam{image}{The image object which is to be affected by this operation.}
681
682 \docparam{stream}{A stream. The meaning of {\it stream} is determined by the {\it type} parameter.}
683
684 \wxheading{Return value}
685
686 TRUE if the operation succeeded, FALSE otherwise.
687
688 \wxheading{See also}
689
690 \helpref{wxImage::LoadFile}{wximageloadfile}\\
691 \helpref{wxImage::SaveFile}{wximagesavefile}\\
692 \helpref{wxImageHandler::LoadFile}{wximagehandlerloadfile}
693
694 \membersection{wxImageHandler::SetName}
695
696 \func{void}{SetName}{\param{const wxString\& }{name}}
697
698 Sets the handler name.
699
700 \wxheading{Parameters}
701
702 \docparam{name}{Handler name.}
703
704 \membersection{wxImageHandler::SetExtension}
705
706 \func{void}{SetExtension}{\param{const wxString\& }{extension}}
707
708 Sets the handler extension.
709
710 \wxheading{Parameters}
711
712 \docparam{extension}{Handler extension.}
713
714 \membersection{wxImageHandler::SetType}
715
716 \func{void}{SetType}{\param{long }{type}}
717
718 Sets the handler type.
719
720 \wxheading{Parameters}
721
722 \docparam{name}{Handler type.}
723
724
725 \membersection{wxImageHandler::SetMimeType}
726
727 \func{void}{SetMimeType}{\param{const wxString\& }{mimetype}}
728
729 Sets the handler MIME type.
730
731 \wxheading{Parameters}
732
733 \docparam{mimename}{Handler MIME type.}
734