]>
git.saurik.com Git - wxWidgets.git/blob - interface/image.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxImageHandler
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
13 This is the base class for implementing image file loading/saving, and image
15 It is used within wxImage and is not normally seen by the application.
17 If you wish to extend the capabilities of wxImage, derive a class from
19 and add the handler using wxImage::AddHandler in your
20 application initialisation.
25 @see wxImage, wxInitAllImageHandlers()
27 class wxImageHandler
: public wxObject
31 Default constructor. In your own default constructor, initialise the members
32 m_name, m_extension and m_type.
37 Destroys the wxImageHandler object.
42 Gets the file extension associated with this handler.
44 const wxString
GetExtension() const;
47 If the image file contains more than one image and the image handler is capable
48 of retrieving these individually, this function will return the number of
52 Opened input stream for reading image data. Currently, the stream must
55 @returns Number of available images. For most image handlers, this is 1
56 (exceptions are TIFF and ICO formats).
58 int GetImageCount(wxInputStream
& stream
);
61 Gets the MIME type associated with this handler.
63 const wxString
GetMimeType() const;
66 Gets the name of this handler.
68 const wxString
GetName() const;
71 Gets the image type associated with this handler.
76 Loads a image from a stream, putting the resulting data into @e image. If the
78 more than one image and the image handler is capable of retrieving these
79 individually, @e index
80 indicates which image to read from the stream.
83 The image object which is to be affected by this operation.
85 Opened input stream for reading image data.
87 If set to @true, errors reported by the image handler will produce
90 The index of the image in the file (starting from zero).
92 @returns @true if the operation succeeded, @false otherwise.
94 @see wxImage::LoadFile, wxImage::SaveFile, SaveFile()
96 bool LoadFile(wxImage
* image
, wxInputStream
& stream
,
97 bool verbose
= true, int index
= 0);
100 Saves a image in the output stream.
103 The image object which is to be affected by this operation.
105 Opened output stream for writing the data.
107 @returns @true if the operation succeeded, @false otherwise.
109 @see wxImage::LoadFile, wxImage::SaveFile, LoadFile()
111 bool SaveFile(wxImage
* image
, wxOutputStream
& stream
);
114 Sets the handler extension.
119 void SetExtension(const wxString
& extension
);
122 Sets the handler MIME type.
127 void SetMimeType(const wxString
& mimetype
);
130 Sets the handler name.
135 void SetName(const wxString
& name
);
144 This class encapsulates a platform-independent image. An image can be created
145 from data, or using wxBitmap::ConvertToImage. An image
146 can be loaded from a file in a variety of formats, and is extensible to new
148 via image format handlers. Functions are available to set and get image bits, so
149 it can be used for basic image manipulation.
151 A wxImage cannot (currently) be drawn directly to a wxDC. Instead,
152 a platform-specific wxBitmap object must be created from it using
153 the wxBitmap::wxBitmap(wxImage,int depth) constructor.
155 be drawn in a device context, using wxDC::DrawBitmap.
157 One colour value of the image may be used as a mask colour which will lead to
158 the automatic creation of a wxMask object associated to the bitmap object.
166 @see wxBitmap, wxInitAllImageHandlers()
168 class wxImage
: public wxObject
173 Creates an image from XPM data.
176 Specifies the width of the image.
178 Specifies the height of the image.
180 Name of the file from which to load the image.
182 Opened input stream from which to load the image. Currently, the stream
183 must support seeking.
185 May be one of the following:
197 Load a Windows bitmap file.
208 Load a GIF bitmap file.
219 Load a JPEG bitmap file.
230 Load a PNG bitmap file.
241 Load a PCX bitmap file.
252 Load a PNM bitmap file.
263 Load a TIFF bitmap file.
274 Load a TGA bitmap file.
285 Load a XPM bitmap file.
296 Load a Windows icon file (ICO).
307 Load a Windows cursor file (CUR).
318 Load a Windows animated cursor file (ANI).
329 Will try to autodetect the format.
331 MIME type string (for example 'image/jpeg')
333 Index of the image to load in the case that the image file contains
335 This is only used by GIF, ICO and TIFF handlers. The default value (-1)
337 "choose the default image" and is interpreted as the first image (index=0)
339 the GIF and TIFF handler and as the largest and most colourful one by the
342 A pointer to XPM image data.
344 @remarks Depending on how wxWidgets has been configured, not all formats
350 wxImage(const wxImage
& image
);
351 wxImage(const wxBitmap
& bitmap
);
352 wxImage(int width
, int height
, bool clear
= true);
353 wxImage(int width
, int height
, unsigned char* data
,
354 bool static_data
= false);
355 wxImage(const wxString
& name
, long type
= wxBITMAP_TYPE_ANY
,
357 wxImage(const wxString
& name
, const wxString
& mimetype
,
359 wxImage(wxInputStream
& stream
, long type
= wxBITMAP_TYPE_ANY
,
361 wxImage(wxInputStream
& stream
, const wxString
& mimetype
,
363 wxImage(const char* const* xpmData
);
368 See @ref overview_refcountdestruct "reference-counted object destruction" for
375 returns @true if the current image handlers can read this file
377 static void AddHandler(wxImageHandler
* handler
);
378 See also
bool CanRead(const wxString
& filename
);
382 Blurs the image in both horizontal and vertical directions by the specified
384 @e blurRadius. This should not be used when using a single mask colour
387 @see @ref horzblur() BlurHorizontal, @ref vertblur() BlurVertical
389 wxImage
Blur(int blurRadius
);
392 Blurs the image in the horizontal direction only. This should not be used
393 when using a single mask colour for transparency.
395 @see Blur(), @ref vertblur() BlurVertical
397 wxImage
BlurHorizontal(int blurRadius
);
400 Blurs the image in the vertical direction only. This should not be used
401 when using a single mask colour for transparency.
403 @see Blur(), @ref horzblur() BlurHorizontal
405 wxImage
BlurVertical(int blurRadius
);
408 Deletes all image handlers.
409 This function is called by wxWidgets on exit.
411 static void CleanUpHandlers();
414 Computes the histogram of the image. @a histogram is a reference to
415 wxImageHistogram object. wxImageHistogram is a specialization of
416 wxHashMap "template" and is defined as follows:
418 @returns Returns number of colours in the histogram.
420 unsigned long ComputeHistogram(wxImageHistogram
& histogram
) const;
423 If the image has alpha channel, this method converts it to mask. All pixels
424 with alpha value less than @a threshold are replaced with mask colour
425 and the alpha channel is removed. Mask colour is chosen automatically using
426 FindFirstUnusedColour().
427 If the image image doesn't have alpha channel,
428 ConvertAlphaToMask does nothing.
430 @returns @false if FindFirstUnusedColour returns @false, @true otherwise.
432 bool ConvertAlphaToMask(unsigned char threshold
= 128);
435 Deprecated, use equivalent @ref wxBitmap::ctor "wxBitmap constructor"
436 (which takes wxImage and depth as its arguments) instead.
438 wxBitmap
ConvertToBitmap() const;
441 Returns a greyscale version of the image. The returned image uses the luminance
442 component of the original to calculate the greyscale. Defaults to using
443 ITU-T BT.601 when converting to YUV, where every pixel equals
444 (R * @e lr) + (G * @e lg) + (B * @e lb).
446 wxImage
ConvertToGreyscale(double lr
= 0.299, double lg
= 0.587,
447 double lb
= 0.114) const;
450 Returns monochromatic version of the image. The returned image has white
451 colour where the original has @e (r,g,b) colour and black colour
454 wxImage
ConvertToMono(unsigned char r
, unsigned char g
,
455 unsigned char b
) const;
458 Returns an identical copy of the image.
460 wxImage
Copy() const;
463 Creates a fresh image. If @a clear is @true, the new image will be initialized
465 Otherwise, the image data will be uninitialized.
468 The width of the image in pixels.
470 The height of the image in pixels.
472 @returns @true if the call succeeded, @false otherwise.
474 bool Create(int width
, int height
, bool clear
= true);
477 Destroys the image data.
483 Pointers to variables to save the colour.
484 @param startR,startG,startB
485 Initial values of the colour. Returned colour
486 will have RGB values equal to or greater than these.
488 @returns Returns @false if there is no unused colour left, @true on success.
490 bool FindFirstUnusedColour(unsigned char* r
, unsigned char* g
,
492 unsigned char startR
= 1,
493 unsigned char startG
= 0,
494 unsigned char startB
= 0);
498 Finds the handler associated with the given MIME type.
503 The file extension, such as "bmp".
505 The image type, such as wxBITMAP_TYPE_BMP.
509 @returns A pointer to the handler if found, @NULL otherwise.
513 static wxImageHandler
* FindHandler(const wxString
& name
);
514 static wxImageHandler
* FindHandler(const wxString
& extension
,
516 static wxImageHandler
* FindHandler(long imageType
);
517 static wxImageHandler
* FindHandlerMime(const wxString
& mimetype
);
522 Returns pointer to the array storing the alpha values for this image. This
523 pointer is @NULL for the images without the alpha channel. If the image
524 does have it, this pointer may be used to directly manipulate the alpha values
525 which are stored as the @ref getdata() RGB ones.
527 unsigned char GetAlpha(int x
, int y
) const;
528 const unsigned char * GetAlpha() const;
532 Returns the blue intensity at the given coordinate.
534 unsigned char GetBlue(int x
, int y
) const;
537 Returns the image data as an array. This is most often used when doing
538 direct image manipulation. The return value points to an array of
539 characters in RGBRGBRGB... format in the top-to-bottom, left-to-right
540 order, that is the first RGB triplet corresponds to the pixel first pixel of
541 the first row, the second one --- to the second pixel of the first row and so
542 on until the end of the first row, with second row following after it and so
544 You should not delete the returned pointer nor pass it to
547 unsigned char* GetData() const;
550 Returns the green intensity at the given coordinate.
552 unsigned char GetGreen(int x
, int y
) const;
555 Returns the static list of image format handlers.
559 static wxList
GetHandlers();
562 Gets the height of the image in pixels.
564 int GetHeight() const;
568 If the image file contains more than one image and the image handler is capable
569 of retrieving these individually, this function will return the number of
573 Name of the file to query.
575 Opened input stream with image data. Currently, the stream must support
578 May be one of the following:
590 Load a Windows bitmap file.
601 Load a GIF bitmap file.
612 Load a JPEG bitmap file.
623 Load a PNG bitmap file.
634 Load a PCX bitmap file.
645 Load a PNM bitmap file.
656 Load a TIFF bitmap file.
667 Load a XPM bitmap file.
678 Load a Windows icon file (ICO).
689 Load a Windows cursor file (CUR).
700 Load a Windows animated cursor file (ANI).
711 Will try to autodetect the format.
713 @returns Number of available images. For most image handlers, this is 1
714 (exceptions are TIFF and ICO formats).
716 static int GetImageCount(const wxString
& filename
,
717 long type
= wxBITMAP_TYPE_ANY
);
718 static int GetImageCount(wxInputStream
& stream
,
719 long type
= wxBITMAP_TYPE_ANY
);
723 Iterates all registered wxImageHandler objects, and returns a string containing
725 suitable for passing to file open/save dialog boxes.
727 @returns The format of the returned string is
728 "(*.ext1;*.ext2)|*.ext1;*.ext2".
732 static wxString
GetImageExtWildcard();
735 Gets the blue value of the mask colour.
737 unsigned char GetMaskBlue() const;
740 Gets the green value of the mask colour.
742 unsigned char GetMaskGreen() const;
745 Gets the red value of the mask colour.
747 unsigned char GetMaskRed() const;
750 Gets a user-defined option. The function is case-insensitive to @e name.
751 For example, when saving as a JPEG file, the option @b quality is
752 used, which is a number between 0 and 100 (0 is terrible, 100 is very good).
754 @see SetOption(), GetOptionInt(), HasOption()
756 wxString
GetOption(const wxString
& name
) const;
759 Gets a user-defined option as an integer. The function is case-insensitive to
761 If the given option is not present, the function returns 0. Use
762 HasOption() is 0 is a possibly valid value
764 Options for wxPNGHandler
766 wxIMAGE_OPTION_PNG_FORMAT
768 Format for saving a PNG file.
770 wxIMAGE_OPTION_PNG_BITDEPTH
772 Bit depth for every channel (R/G/B/A).
774 Supported values for wxIMAGE_OPTION_PNG_FORMAT:
782 Stores grey image, converts from RGB.
786 Stores grey image, uses red value as grey.
788 @see SetOption(), GetOption()
790 int GetOptionInt(const wxString
& name
) const;
793 Get the current mask colour or find a suitable unused colour that could be
794 used as a mask colour. Returns @true if the image currently has a mask.
796 bool GetOrFindMaskColour(unsigned char r
, unsigned char g
,
797 unsigned char b
) const;
800 Returns the palette associated with the image. Currently the palette is only
801 used when converting to wxBitmap under Windows. Some of the wxImage handlers
802 have been modified to set the palette if one exists in the image file (usually
803 256 or less colour images in GIF or PNG format).
805 const wxPalette
GetPalette() const;
808 Returns the red intensity at the given coordinate.
810 unsigned char GetRed(int x
, int y
) const;
813 Returns a sub image of the current one as long as the rect belongs entirely to
816 wxImage
GetSubImage(const wxRect
& rect
) const;
819 Gets the width of the image in pixels.
823 int GetWidth() const;
826 Constructor for HSVValue, an object that contains values for hue, saturation
828 represent the value of a color. It is used by HSVtoRGB()
829 and RGBtoHSV(), which
830 converts between HSV color space and RGB color space.
832 HSVValue(double h
= 0.0, double s
= 0.0, double v
= 0.0);
835 Converts a color in HSV color space to RGB color space.
837 #define wxImage::RGBValue HSVtoRGB(const HSVValue& hsv) /* implementation is private */
840 Returns @true if this image has alpha channel, @false otherwise.
842 @see GetAlpha(), SetAlpha()
844 bool HasAlpha() const;
847 Returns @true if there is a mask active, @false otherwise.
849 bool HasMask() const;
852 Returns @true if the given option is present. The function is case-insensitive
855 @see SetOption(), GetOption(), GetOptionInt()
857 bool HasOption(const wxString
& name
) const;
860 Initializes the image alpha channel data. It is an error to call it
861 if the image already has alpha data. If it doesn't, alpha data will be
862 by default initialized to all pixels being fully opaque. But if the image has a
863 a mask colour, all mask pixels will be completely transparent.
868 Internal use only. Adds standard image format handlers. It only install BMP
869 for the time being, which is used by wxBitmap.
870 This function is called by wxWidgets on startup, and shouldn't be called by
873 @see wxImageHandler, wxInitAllImageHandlers(), wxQuantize
875 static void InitStandardHandlers();
878 Adds a handler at the start of the static list of format handlers.
881 A new image format handler object. There is usually only one instance
882 of a given handler class in an application session.
886 static void InsertHandler(wxImageHandler
* handler
);
889 Returns @true if image data is present.
894 Returns @true if the given pixel is transparent, i.e. either has the mask
895 colour if this image has a mask or if this image has alpha channel and alpha
896 value of this pixel is strictly less than @e threshold.
898 bool IsTransparent(int x
, int y
, unsigned char threshold
= 128) const;
902 Loads an image from an input stream.
905 Name of the file from which to load the image.
907 Opened input stream from which to load the image. Currently, the stream
908 must support seeking.
910 One of the following values:
922 Load a Windows image file.
933 Load a GIF image file.
944 Load a JPEG image file.
955 Load a PCX image file.
966 Load a PNG image file.
977 Load a PNM image file.
988 Load a TIFF image file.
999 Load a XPM image file.
1010 Load a Windows icon file (ICO).
1021 Load a Windows cursor file (CUR).
1032 Load a Windows animated cursor file (ANI).
1043 Will try to autodetect the format.
1045 MIME type string (for example 'image/jpeg')
1047 Index of the image to load in the case that the image file contains
1049 This is only used by GIF, ICO and TIFF handlers. The default value (-1)
1051 "choose the default image" and is interpreted as the first image (index=0)
1053 the GIF and TIFF handler and as the largest and most colourful one by the
1056 @returns @true if the operation succeeded, @false otherwise. If the
1057 optional index parameter is out of range, @false is
1058 returned and a call to wxLogError() takes place.
1060 @remarks Depending on how wxWidgets has been configured, not all formats
1065 bool LoadFile(const wxString
& name
,
1066 long type
= wxBITMAP_TYPE_ANY
,
1068 bool LoadFile(const wxString
& name
, const wxString
& mimetype
,
1070 bool LoadFile(wxInputStream
& stream
, long type
,
1072 bool LoadFile(wxInputStream
& stream
,
1073 const wxString
& mimetype
,
1078 Returns a mirrored copy of the image. The parameter @e horizontally
1079 indicates the orientation.
1081 wxImage
Mirror(bool horizontally
= true) const;
1084 Copy the data of the given @a image to the specified position in this image.
1086 void Paste(const wxImage
& image
, int x
, int y
);
1089 Constructor for RGBValue, an object that contains values for red, green and
1091 represent the value of a color. It is used by HSVtoRGB()
1092 and RGBtoHSV(), which
1093 converts between HSV color space and RGB color space.
1095 RGBValue(unsigned char r
= 0, unsigned char g
= 0,
1096 unsigned char b
= 0);
1099 Converts a color in RGB color space to HSV color space.
1101 #define wxImage::HSVValue RGBtoHSV(const RGBValue& rgb) /* implementation is private */
1104 Finds the handler with the given name, and removes it. The handler
1110 @returns @true if the handler was found and removed, @false otherwise.
1114 static bool RemoveHandler(const wxString
& name
);
1117 Replaces the colour specified by @e r1,g1,b1 by the colour @e r2,g2,b2.
1119 void Replace(unsigned char r1
, unsigned char g1
,
1120 unsigned char b1
, unsigned char r2
,
1121 unsigned char g2
, unsigned char b2
);
1124 Changes the size of the image in-place by scaling it: after a call to this
1126 the image will have the given width and height.
1127 For a description of the @a quality parameter, see the Scale() function.
1128 Returns the (modified) image itself.
1132 wxImage
Rescale(int width
, int height
,
1133 int quality
= wxIMAGE_QUALITY_NORMAL
);
1136 Changes the size of the image in-place without scaling it by adding either a
1138 with the given colour or cropping as necessary. The image is pasted into a new
1139 image with the given @a size and background colour at the position @e pos
1140 relative to the upper left of the new image. If @a red = green = blue = -1
1141 then use either the current mask colour if set or find, use, and set a
1142 suitable mask colour for any newly exposed areas.
1143 Returns the (modified) image itself.
1147 wxImage
Resize(const wxSize
& size
, const wxPoint pos
,
1148 int red
= -1, int green
= -1,
1152 Rotates the image about the given point, by @a angle radians. Passing @true
1153 to @a interpolating results in better image quality, but is slower. If the
1154 image has a mask, then the mask colour is used for the uncovered pixels in the
1155 rotated image background. Else, black (rgb 0, 0, 0) will be used.
1156 Returns the rotated image, leaving this image intact.
1158 wxImage
Rotate(double angle
, const wxPoint
& rotationCentre
,
1159 bool interpolating
= true,
1160 wxPoint
* offsetAfterRotation
= NULL
);
1163 Returns a copy of the image rotated 90 degrees in the direction
1164 indicated by @e clockwise.
1166 wxImage
Rotate90(bool clockwise
= true) const;
1169 Rotates the hue of each pixel in the image by @e angle, which is a double in
1170 the range of -1.0 to +1.0, where -1.0 corresponds to -360 degrees and +1.0
1174 void RotateHue(double angle
);
1178 Saves an image in the given stream.
1181 Name of the file to save the image to.
1183 Opened output stream to save the image to.
1185 Currently these types can be used:
1197 Save a BMP image file.
1208 Save a JPEG image file.
1219 Save a PNG image file.
1230 Save a PCX image file (tries to save as 8-bit if possible, falls back to
1242 Save a PNM image file (as raw RGB always).
1253 Save a TIFF image file.
1264 Save a XPM image file.
1275 Save a Windows icon file (ICO) (the size may be up to 255 wide by 127 high.
1276 A single image is saved in 8 colors at the size supplied).
1287 Save a Windows cursor file (CUR).
1291 @returns @true if the operation succeeded, @false otherwise.
1293 @remarks Depending on how wxWidgets has been configured, not all formats
1298 bool SaveFile(const wxString
& name
, int type
) const;
1299 const bool SaveFile(const wxString
& name
,
1300 const wxString
& mimetype
) const;
1301 const bool SaveFile(const wxString
& name
) const;
1302 const bool SaveFile(wxOutputStream
& stream
, int type
) const;
1303 const bool SaveFile(wxOutputStream
& stream
,
1304 const wxString
& mimetype
) const;
1308 Returns a scaled version of the image. This is also useful for
1309 scaling bitmaps in general as the only other way to scale bitmaps
1310 is to blit a wxMemoryDC into another wxMemoryDC.
1311 It should be noted that although using wxIMAGE_QUALITY_HIGH produces much nicer
1312 looking results it is a slower method. Downsampling will use the box averaging
1314 which seems to operate very fast. If you are upsampling larger images using
1315 this method you will most likely notice that it is a bit slower and in extreme
1317 it will be quite substantially slower as the bicubic algorithm has to process a
1320 It should also be noted that the high quality scaling may not work as expected
1321 when using a single mask colour for transparency, as the scaling will blur the
1322 image and will therefore remove the mask partially. Using the alpha channel
1327 Determines what method to use for resampling the image. Can be one of the
1335 wxIMAGE_QUALITY_NORMAL
1340 Uses the normal default scaling method of pixel replication
1346 wxIMAGE_QUALITY_HIGH
1351 Uses bicubic and box averaging resampling methods for upsampling and
1352 downsampling respectively
1356 wxImage
Scale(int width
, int height
,
1357 int quality
= wxIMAGE_QUALITY_NORMAL
) const;
1361 Sets the alpha value for the given pixel. This function should only be called
1362 if the image has alpha channel data, use HasAlpha() to
1365 void SetAlpha(unsigned char* alpha
= NULL
,
1366 bool static_data
= false);
1367 void SetAlpha(int x
, int y
, unsigned char alpha
);
1371 Sets the image data without performing checks. The data given must have
1372 the size (width*height*3) or results will be unexpected. Don't use this
1373 method if you aren't sure you know what you are doing.
1374 The data must have been allocated with @c malloc(), @b NOT with
1376 After this call the pointer to the data is owned by the wxImage object,
1377 that will be responsible for deleting it.
1378 Do not pass to this function a pointer obtained through
1381 void SetData(unsigned char* data
);
1384 Specifies whether there is a mask or not. The area of the mask is determined by
1385 the current mask colour.
1387 void SetMask(bool hasMask
= true);
1390 Sets the mask colour for this image (and tells the image to use the mask).
1392 void SetMaskColour(unsigned char red
, unsigned char green
,
1393 unsigned char blue
);
1397 The mask image to extract mask shape from. Must have same dimensions as the
1400 RGB value of pixels in mask that will be used to create the mask.
1402 @returns Returns @false if mask does not have same dimensions as the image
1403 or if there is no unused colour left. Returns @true if
1404 the mask was successfully applied.
1406 bool SetMaskFromImage(const wxImage
& mask
, unsigned char mr
,
1412 Sets a user-defined option. The function is case-insensitive to @e name.
1413 For example, when saving as a JPEG file, the option @b quality is
1414 used, which is a number between 0 and 100 (0 is terrible, 100 is very good).
1416 @see GetOption(), GetOptionInt(), HasOption()
1418 void SetOption(const wxString
& name
, const wxString
& value
);
1419 void SetOption(const wxString
& name
, int value
);
1423 Associates a palette with the image. The palette may be used when converting
1424 wxImage to wxBitmap (MSW only at present) or in file save operations (none as
1427 void SetPalette(const wxPalette
& palette
);
1430 Sets the colour of the pixels within the given rectangle. This routine performs
1431 bounds-checks for the coordinate so it can be considered a safe way to
1435 void SetRGB(wxRect
& rect
, unsigned char red
,
1436 unsigned char green
,
1437 unsigned char blue
);
1440 Returns a resized version of this image without scaling it by adding either a
1442 with the given colour or cropping as necessary. The image is pasted into a new
1443 image with the given @a size and background colour at the position @e pos
1444 relative to the upper left of the new image. If @a red = green = blue = -1
1445 then the areas of the larger image not covered by this image are made
1446 transparent by filling them with the image mask colour (which will be allocated
1447 automatically if it isn't currently set). Otherwise, the areas will be filled
1448 with the colour with the specified RGB components.
1452 wxImage
Size(const wxSize
& size
, const wxPoint pos
, int red
= -1,
1453 int green
= -1, int blue
= -1) const;
1456 Assignment operator, using @ref overview_trefcount "reference counting".
1461 @returns Returns 'this' object.
1463 wxImage
operator =(const wxImage
& image
);
1469 wxImage wxNullImage
;
1472 // ============================================================================
1473 // Global functions/macros
1474 // ============================================================================
1476 /** @ingroup group_funcmacro_appinitterm */
1480 Initializes all available image handlers. For a list of available handlers,
1483 @see wxImage, wxImageHandler
1487 void wxInitAllImageHandlers();