]>
git.saurik.com Git - wxWidgets.git/blob - interface/image.h
c3caaebe66bcaed9d70aee6a318a78f3ecce5342
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
);
142 @ingroup group_class_gdi
145 This class encapsulates a platform-independent image. An image can be created
146 from data, or using wxBitmap::ConvertToImage. An image
147 can be loaded from a file in a variety of formats, and is extensible to new
149 via image format handlers. Functions are available to set and get image bits, so
150 it can be used for basic image manipulation.
152 A wxImage cannot (currently) be drawn directly to a wxDC. Instead,
153 a platform-specific wxBitmap object must be created from it using
154 the wxBitmap::wxBitmap(wxImage,int depth) constructor.
156 be drawn in a device context, using wxDC::DrawBitmap.
158 One colour value of the image may be used as a mask colour which will lead to
160 creation of a wxMask object associated to the bitmap object.
165 @see wxBitmap, wxInitAllImageHandlers()
167 class wxImage
: public wxObject
172 Creates an image from XPM data.
175 Specifies the width of the image.
177 Specifies the height of the image.
179 Name of the file from which to load the image.
181 Opened input stream from which to load the image. Currently, the stream
182 must support seeking.
184 May be one of the following:
196 Load a Windows bitmap file.
207 Load a GIF bitmap file.
218 Load a JPEG bitmap file.
229 Load a PNG bitmap file.
240 Load a PCX bitmap file.
251 Load a PNM bitmap file.
262 Load a TIFF bitmap file.
273 Load a TGA bitmap file.
284 Load a XPM bitmap file.
295 Load a Windows icon file (ICO).
306 Load a Windows cursor file (CUR).
317 Load a Windows animated cursor file (ANI).
328 Will try to autodetect the format.
330 MIME type string (for example 'image/jpeg')
332 Index of the image to load in the case that the image file contains
334 This is only used by GIF, ICO and TIFF handlers. The default value (-1)
336 "choose the default image" and is interpreted as the first image (index=0)
338 the GIF and TIFF handler and as the largest and most colourful one by the
341 A pointer to XPM image data.
343 @remarks Depending on how wxWidgets has been configured, not all formats
349 wxImage(const wxImage
& image
);
350 wxImage(const wxBitmap
& bitmap
);
351 wxImage(int width
, int height
, bool clear
= true);
352 wxImage(int width
, int height
, unsigned char* data
,
353 bool static_data
= false);
354 wxImage(const wxString
& name
, long type
= wxBITMAP_TYPE_ANY
,
356 wxImage(const wxString
& name
, const wxString
& mimetype
,
358 wxImage(wxInputStream
& stream
, long type
= wxBITMAP_TYPE_ANY
,
360 wxImage(wxInputStream
& stream
, const wxString
& mimetype
,
362 wxImage(const char* const* xpmData
);
367 See @ref overview_refcountdestruct "reference-counted object destruction" for
374 returns @true if the current image handlers can read this file
376 static void AddHandler(wxImageHandler
* handler
);
377 See also
bool CanRead(const wxString
& filename
);
381 Blurs the image in both horizontal and vertical directions by the specified
383 @e blurRadius. This should not be used when using a single mask colour
386 @see @ref horzblur() BlurHorizontal, @ref vertblur() BlurVertical
388 wxImage
Blur(int blurRadius
);
391 Blurs the image in the horizontal direction only. This should not be used
392 when using a single mask colour for transparency.
394 @see Blur(), @ref vertblur() BlurVertical
396 wxImage
BlurHorizontal(int blurRadius
);
399 Blurs the image in the vertical direction only. This should not be used
400 when using a single mask colour for transparency.
402 @see Blur(), @ref horzblur() BlurHorizontal
404 wxImage
BlurVertical(int blurRadius
);
407 Deletes all image handlers.
408 This function is called by wxWidgets on exit.
410 static void CleanUpHandlers();
413 Computes the histogram of the image. @a histogram is a reference to
414 wxImageHistogram object. wxImageHistogram is a specialization of
415 wxHashMap "template" and is defined as follows:
417 @returns Returns number of colours in the histogram.
419 unsigned long ComputeHistogram(wxImageHistogram
& histogram
) const;
422 If the image has alpha channel, this method converts it to mask. All pixels
423 with alpha value less than @a threshold are replaced with mask colour
424 and the alpha channel is removed. Mask colour is chosen automatically using
425 FindFirstUnusedColour().
426 If the image image doesn't have alpha channel,
427 ConvertAlphaToMask does nothing.
429 @returns @false if FindFirstUnusedColour returns @false, @true otherwise.
431 bool ConvertAlphaToMask(unsigned char threshold
= 128);
434 Deprecated, use equivalent @ref wxBitmap::ctor "wxBitmap constructor"
435 (which takes wxImage and depth as its arguments) instead.
437 wxBitmap
ConvertToBitmap() const;
440 Returns a greyscale version of the image. The returned image uses the luminance
441 component of the original to calculate the greyscale. Defaults to using
442 ITU-T BT.601 when converting to YUV, where every pixel equals
443 (R * @e lr) + (G * @e lg) + (B * @e lb).
445 wxImage
ConvertToGreyscale(double lr
= 0.299, double lg
= 0.587,
446 double lb
= 0.114) const;
449 Returns monochromatic version of the image. The returned image has white
450 colour where the original has @e (r,g,b) colour and black colour
453 wxImage
ConvertToMono(unsigned char r
, unsigned char g
,
454 unsigned char b
) const;
457 Returns an identical copy of the image.
459 wxImage
Copy() const;
462 Creates a fresh image. If @a clear is @true, the new image will be initialized
464 Otherwise, the image data will be uninitialized.
467 The width of the image in pixels.
469 The height of the image in pixels.
471 @returns @true if the call succeeded, @false otherwise.
473 bool Create(int width
, int height
, bool clear
= true);
476 Destroys the image data.
482 Pointers to variables to save the colour.
483 @param startR,startG,startB
484 Initial values of the colour. Returned colour
485 will have RGB values equal to or greater than these.
487 @returns Returns @false if there is no unused colour left, @true on success.
489 bool FindFirstUnusedColour(unsigned char* r
, unsigned char* g
,
491 unsigned char startR
= 1,
492 unsigned char startG
= 0,
493 unsigned char startB
= 0);
497 Finds the handler associated with the given MIME type.
502 The file extension, such as "bmp".
504 The image type, such as wxBITMAP_TYPE_BMP.
508 @returns A pointer to the handler if found, @NULL otherwise.
512 static wxImageHandler
* FindHandler(const wxString
& name
);
513 static wxImageHandler
* FindHandler(const wxString
& extension
,
515 static wxImageHandler
* FindHandler(long imageType
);
516 static wxImageHandler
* FindHandlerMime(const wxString
& mimetype
);
521 Returns pointer to the array storing the alpha values for this image. This
522 pointer is @NULL for the images without the alpha channel. If the image
523 does have it, this pointer may be used to directly manipulate the alpha values
524 which are stored as the @ref getdata() RGB ones.
526 unsigned char GetAlpha(int x
, int y
) const;
527 const unsigned char * GetAlpha() const;
531 Returns the blue intensity at the given coordinate.
533 unsigned char GetBlue(int x
, int y
) const;
536 Returns the image data as an array. This is most often used when doing
537 direct image manipulation. The return value points to an array of
538 characters in RGBRGBRGB... format in the top-to-bottom, left-to-right
539 order, that is the first RGB triplet corresponds to the pixel first pixel of
540 the first row, the second one --- to the second pixel of the first row and so
541 on until the end of the first row, with second row following after it and so
543 You should not delete the returned pointer nor pass it to
546 unsigned char* GetData() const;
549 Returns the green intensity at the given coordinate.
551 unsigned char GetGreen(int x
, int y
) const;
554 Returns the static list of image format handlers.
558 static wxList
GetHandlers();
561 Gets the height of the image in pixels.
563 int GetHeight() const;
567 If the image file contains more than one image and the image handler is capable
568 of retrieving these individually, this function will return the number of
572 Name of the file to query.
574 Opened input stream with image data. Currently, the stream must support
577 May be one of the following:
589 Load a Windows bitmap file.
600 Load a GIF bitmap file.
611 Load a JPEG bitmap file.
622 Load a PNG bitmap file.
633 Load a PCX bitmap file.
644 Load a PNM bitmap file.
655 Load a TIFF bitmap file.
666 Load a XPM bitmap file.
677 Load a Windows icon file (ICO).
688 Load a Windows cursor file (CUR).
699 Load a Windows animated cursor file (ANI).
710 Will try to autodetect the format.
712 @returns Number of available images. For most image handlers, this is 1
713 (exceptions are TIFF and ICO formats).
715 static int GetImageCount(const wxString
& filename
,
716 long type
= wxBITMAP_TYPE_ANY
);
717 static int GetImageCount(wxInputStream
& stream
,
718 long type
= wxBITMAP_TYPE_ANY
);
722 Iterates all registered wxImageHandler objects, and returns a string containing
724 suitable for passing to file open/save dialog boxes.
726 @returns The format of the returned string is
727 "(*.ext1;*.ext2)|*.ext1;*.ext2".
731 static wxString
GetImageExtWildcard();
734 Gets the blue value of the mask colour.
736 unsigned char GetMaskBlue() const;
739 Gets the green value of the mask colour.
741 unsigned char GetMaskGreen() const;
744 Gets the red value of the mask colour.
746 unsigned char GetMaskRed() const;
749 Gets a user-defined option. The function is case-insensitive to @e name.
750 For example, when saving as a JPEG file, the option @b quality is
751 used, which is a number between 0 and 100 (0 is terrible, 100 is very good).
753 @see SetOption(), GetOptionInt(), HasOption()
755 wxString
GetOption(const wxString
& name
) const;
758 Gets a user-defined option as an integer. The function is case-insensitive to
760 If the given option is not present, the function returns 0. Use
761 HasOption() is 0 is a possibly valid value
763 Options for wxPNGHandler
765 wxIMAGE_OPTION_PNG_FORMAT
767 Format for saving a PNG file.
769 wxIMAGE_OPTION_PNG_BITDEPTH
771 Bit depth for every channel (R/G/B/A).
773 Supported values for wxIMAGE_OPTION_PNG_FORMAT:
781 Stores grey image, converts from RGB.
785 Stores grey image, uses red value as grey.
787 @see SetOption(), GetOption()
789 int GetOptionInt(const wxString
& name
) const;
792 Get the current mask colour or find a suitable unused colour that could be
793 used as a mask colour. Returns @true if the image currently has a mask.
795 bool GetOrFindMaskColour(unsigned char r
, unsigned char g
,
796 unsigned char b
) const;
799 Returns the palette associated with the image. Currently the palette is only
800 used when converting to wxBitmap under Windows. Some of the wxImage handlers
801 have been modified to set the palette if one exists in the image file (usually
802 256 or less colour images in GIF or PNG format).
804 const wxPalette
GetPalette() const;
807 Returns the red intensity at the given coordinate.
809 unsigned char GetRed(int x
, int y
) const;
812 Returns a sub image of the current one as long as the rect belongs entirely to
815 wxImage
GetSubImage(const wxRect
& rect
) const;
818 Gets the width of the image in pixels.
822 int GetWidth() const;
825 Constructor for HSVValue, an object that contains values for hue, saturation
827 represent the value of a color. It is used by HSVtoRGB()
828 and RGBtoHSV(), which
829 converts between HSV color space and RGB color space.
831 HSVValue(double h
= 0.0, double s
= 0.0, double v
= 0.0);
834 Converts a color in HSV color space to RGB color space.
836 #define wxImage::RGBValue HSVtoRGB(const HSVValue& hsv) /* implementation is private */
839 Returns @true if this image has alpha channel, @false otherwise.
841 @see GetAlpha(), SetAlpha()
843 bool HasAlpha() const;
846 Returns @true if there is a mask active, @false otherwise.
848 bool HasMask() const;
851 Returns @true if the given option is present. The function is case-insensitive
854 @see SetOption(), GetOption(), GetOptionInt()
856 bool HasOption(const wxString
& name
) const;
859 Initializes the image alpha channel data. It is an error to call it
860 if the image already has alpha data. If it doesn't, alpha data will be
861 by default initialized to all pixels being fully opaque. But if the image has a
862 a mask colour, all mask pixels will be completely transparent.
867 Internal use only. Adds standard image format handlers. It only install BMP
868 for the time being, which is used by wxBitmap.
869 This function is called by wxWidgets on startup, and shouldn't be called by
872 @see wxImageHandler, wxInitAllImageHandlers(), wxQuantize
874 static void InitStandardHandlers();
877 Adds a handler at the start of the static list of format handlers.
880 A new image format handler object. There is usually only one instance
881 of a given handler class in an application session.
885 static void InsertHandler(wxImageHandler
* handler
);
888 Returns @true if image data is present.
893 Returns @true if the given pixel is transparent, i.e. either has the mask
894 colour if this image has a mask or if this image has alpha channel and alpha
895 value of this pixel is strictly less than @e threshold.
897 bool IsTransparent(int x
, int y
, unsigned char threshold
= 128) const;
901 Loads an image from an input stream.
904 Name of the file from which to load the image.
906 Opened input stream from which to load the image. Currently, the stream
907 must support seeking.
909 One of the following values:
921 Load a Windows image file.
932 Load a GIF image file.
943 Load a JPEG image file.
954 Load a PCX image file.
965 Load a PNG image file.
976 Load a PNM image file.
987 Load a TIFF image file.
998 Load a XPM image file.
1009 Load a Windows icon file (ICO).
1020 Load a Windows cursor file (CUR).
1031 Load a Windows animated cursor file (ANI).
1042 Will try to autodetect the format.
1044 MIME type string (for example 'image/jpeg')
1046 Index of the image to load in the case that the image file contains
1048 This is only used by GIF, ICO and TIFF handlers. The default value (-1)
1050 "choose the default image" and is interpreted as the first image (index=0)
1052 the GIF and TIFF handler and as the largest and most colourful one by the
1055 @returns @true if the operation succeeded, @false otherwise. If the
1056 optional index parameter is out of range, @false is
1057 returned and a call to wxLogError() takes place.
1059 @remarks Depending on how wxWidgets has been configured, not all formats
1064 bool LoadFile(const wxString
& name
,
1065 long type
= wxBITMAP_TYPE_ANY
,
1067 bool LoadFile(const wxString
& name
, const wxString
& mimetype
,
1069 bool LoadFile(wxInputStream
& stream
, long type
,
1071 bool LoadFile(wxInputStream
& stream
,
1072 const wxString
& mimetype
,
1077 Returns a mirrored copy of the image. The parameter @e horizontally
1078 indicates the orientation.
1080 wxImage
Mirror(bool horizontally
= true) const;
1083 Copy the data of the given @a image to the specified position in this image.
1085 void Paste(const wxImage
& image
, int x
, int y
);
1088 Constructor for RGBValue, an object that contains values for red, green and
1090 represent the value of a color. It is used by HSVtoRGB()
1091 and RGBtoHSV(), which
1092 converts between HSV color space and RGB color space.
1094 RGBValue(unsigned char r
= 0, unsigned char g
= 0,
1095 unsigned char b
= 0);
1098 Converts a color in RGB color space to HSV color space.
1100 #define wxImage::HSVValue RGBtoHSV(const RGBValue& rgb) /* implementation is private */
1103 Finds the handler with the given name, and removes it. The handler
1109 @returns @true if the handler was found and removed, @false otherwise.
1113 static bool RemoveHandler(const wxString
& name
);
1116 Replaces the colour specified by @e r1,g1,b1 by the colour @e r2,g2,b2.
1118 void Replace(unsigned char r1
, unsigned char g1
,
1119 unsigned char b1
, unsigned char r2
,
1120 unsigned char g2
, unsigned char b2
);
1123 Changes the size of the image in-place by scaling it: after a call to this
1125 the image will have the given width and height.
1126 For a description of the @a quality parameter, see the Scale() function.
1127 Returns the (modified) image itself.
1131 wxImage
Rescale(int width
, int height
,
1132 int quality
= wxIMAGE_QUALITY_NORMAL
);
1135 Changes the size of the image in-place without scaling it by adding either a
1137 with the given colour or cropping as necessary. The image is pasted into a new
1138 image with the given @a size and background colour at the position @e pos
1139 relative to the upper left of the new image. If @a red = green = blue = -1
1140 then use either the current mask colour if set or find, use, and set a
1141 suitable mask colour for any newly exposed areas.
1142 Returns the (modified) image itself.
1146 wxImage
Resize(const wxSize
& size
, const wxPoint pos
,
1147 int red
= -1, int green
= -1,
1151 Rotates the image about the given point, by @a angle radians. Passing @true
1152 to @a interpolating results in better image quality, but is slower. If the
1153 image has a mask, then the mask colour is used for the uncovered pixels in the
1154 rotated image background. Else, black (rgb 0, 0, 0) will be used.
1155 Returns the rotated image, leaving this image intact.
1157 wxImage
Rotate(double angle
, const wxPoint
& rotationCentre
,
1158 bool interpolating
= true,
1159 wxPoint
* offsetAfterRotation
= NULL
);
1162 Returns a copy of the image rotated 90 degrees in the direction
1163 indicated by @e clockwise.
1165 wxImage
Rotate90(bool clockwise
= true) const;
1168 Rotates the hue of each pixel in the image by @e angle, which is a double in
1169 the range of -1.0 to +1.0, where -1.0 corresponds to -360 degrees and +1.0
1173 void RotateHue(double angle
);
1177 Saves an image in the given stream.
1180 Name of the file to save the image to.
1182 Opened output stream to save the image to.
1184 Currently these types can be used:
1196 Save a BMP image file.
1207 Save a JPEG image file.
1218 Save a PNG image file.
1229 Save a PCX image file (tries to save as 8-bit if possible, falls back to
1241 Save a PNM image file (as raw RGB always).
1252 Save a TIFF image file.
1263 Save a XPM image file.
1274 Save a Windows icon file (ICO) (the size may be up to 255 wide by 127 high.
1275 A single image is saved in 8 colors at the size supplied).
1286 Save a Windows cursor file (CUR).
1290 @returns @true if the operation succeeded, @false otherwise.
1292 @remarks Depending on how wxWidgets has been configured, not all formats
1297 bool SaveFile(const wxString
& name
, int type
) const;
1298 const bool SaveFile(const wxString
& name
,
1299 const wxString
& mimetype
) const;
1300 const bool SaveFile(const wxString
& name
) const;
1301 const bool SaveFile(wxOutputStream
& stream
, int type
) const;
1302 const bool SaveFile(wxOutputStream
& stream
,
1303 const wxString
& mimetype
) const;
1307 Returns a scaled version of the image. This is also useful for
1308 scaling bitmaps in general as the only other way to scale bitmaps
1309 is to blit a wxMemoryDC into another wxMemoryDC.
1310 It should be noted that although using wxIMAGE_QUALITY_HIGH produces much nicer
1311 looking results it is a slower method. Downsampling will use the box averaging
1313 which seems to operate very fast. If you are upsampling larger images using
1314 this method you will most likely notice that it is a bit slower and in extreme
1316 it will be quite substantially slower as the bicubic algorithm has to process a
1319 It should also be noted that the high quality scaling may not work as expected
1320 when using a single mask colour for transparency, as the scaling will blur the
1321 image and will therefore remove the mask partially. Using the alpha channel
1326 Determines what method to use for resampling the image. Can be one of the
1334 wxIMAGE_QUALITY_NORMAL
1339 Uses the normal default scaling method of pixel replication
1345 wxIMAGE_QUALITY_HIGH
1350 Uses bicubic and box averaging resampling methods for upsampling and
1351 downsampling respectively
1355 wxImage
Scale(int width
, int height
,
1356 int quality
= wxIMAGE_QUALITY_NORMAL
) const;
1360 Sets the alpha value for the given pixel. This function should only be called
1361 if the image has alpha channel data, use HasAlpha() to
1364 void SetAlpha(unsigned char* alpha
= NULL
,
1365 bool static_data
= false);
1366 void SetAlpha(int x
, int y
, unsigned char alpha
);
1370 Sets the image data without performing checks. The data given must have
1371 the size (width*height*3) or results will be unexpected. Don't use this
1372 method if you aren't sure you know what you are doing.
1373 The data must have been allocated with @c malloc(), @b NOT with
1375 After this call the pointer to the data is owned by the wxImage object,
1376 that will be responsible for deleting it.
1377 Do not pass to this function a pointer obtained through
1380 void SetData(unsigned char* data
);
1383 Specifies whether there is a mask or not. The area of the mask is determined by
1384 the current mask colour.
1386 void SetMask(bool hasMask
= true);
1389 Sets the mask colour for this image (and tells the image to use the mask).
1391 void SetMaskColour(unsigned char red
, unsigned char green
,
1392 unsigned char blue
);
1396 The mask image to extract mask shape from. Must have same dimensions as the
1399 RGB value of pixels in mask that will be used to create the mask.
1401 @returns Returns @false if mask does not have same dimensions as the image
1402 or if there is no unused colour left. Returns @true if
1403 the mask was successfully applied.
1405 bool SetMaskFromImage(const wxImage
& mask
, unsigned char mr
,
1411 Sets a user-defined option. The function is case-insensitive to @e name.
1412 For example, when saving as a JPEG file, the option @b quality is
1413 used, which is a number between 0 and 100 (0 is terrible, 100 is very good).
1415 @see GetOption(), GetOptionInt(), HasOption()
1417 void SetOption(const wxString
& name
, const wxString
& value
);
1418 void SetOption(const wxString
& name
, int value
);
1422 Associates a palette with the image. The palette may be used when converting
1423 wxImage to wxBitmap (MSW only at present) or in file save operations (none as
1426 void SetPalette(const wxPalette
& palette
);
1429 Sets the colour of the pixels within the given rectangle. This routine performs
1430 bounds-checks for the coordinate so it can be considered a safe way to
1434 void SetRGB(wxRect
& rect
, unsigned char red
,
1435 unsigned char green
,
1436 unsigned char blue
);
1439 Returns a resized version of this image without scaling it by adding either a
1441 with the given colour or cropping as necessary. The image is pasted into a new
1442 image with the given @a size and background colour at the position @e pos
1443 relative to the upper left of the new image. If @a red = green = blue = -1
1444 then the areas of the larger image not covered by this image are made
1445 transparent by filling them with the image mask colour (which will be allocated
1446 automatically if it isn't currently set). Otherwise, the areas will be filled
1447 with the colour with the specified RGB components.
1451 wxImage
Size(const wxSize
& size
, const wxPoint pos
, int red
= -1,
1452 int green
= -1, int blue
= -1) const;
1455 Assignment operator, using @ref overview_trefcount "reference counting".
1460 @returns Returns 'this' object.
1462 wxImage
operator =(const wxImage
& image
);
1467 // ============================================================================
1468 // Global functions/macros
1469 // ============================================================================
1472 Initializes all available image handlers. For a list of available handlers,
1475 @see wxImage, wxImageHandler
1477 void wxInitAllImageHandlers();