X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1413ac0435e10586374b109a92d6fe7097dd9699..3201a1046ba71ba8e5ef2ed694fde34d12f743f3:/interface/bitmap.h diff --git a/interface/bitmap.h b/interface/bitmap.h index 1de90974ad..1bcf959e19 100644 --- a/interface/bitmap.h +++ b/interface/bitmap.h @@ -64,7 +64,7 @@ public: A bitmap type identifier - see ::wxBitmapType for a list of possible values. - @returns @true if the call succeeded, @false otherwise (the default). + @return @true if the call succeeded, @false otherwise (the default). */ virtual bool Create(wxBitmap* bitmap, const void* data, wxBitmapType type, int width, int height, int depth = 1); @@ -95,8 +95,12 @@ public: The meaning of name is determined by the type parameter. @param type See ::wxBitmapType for values this can take. + @param desiredWidth + The desired width for the loaded bitmap. + @param desiredHeight + The desired height for the loaded bitmap. - @returns @true if the operation succeeded, @false otherwise. + @return @true if the operation succeeded, @false otherwise. @see wxBitmap::LoadFile, wxBitmap::SaveFile, SaveFile() */ @@ -115,12 +119,12 @@ public: @param palette An optional palette used for saving the bitmap. - @returns @true if the operation succeeded, @false otherwise. + @return @true if the operation succeeded, @false otherwise. @see wxBitmap::LoadFile, wxBitmap::SaveFile, LoadFile() */ virtual bool SaveFile(const wxBitmap* bitmap, const wxString& name, wxBitmapType type, - wxPalette* palette = NULL) const; + const wxPalette* palette = NULL) const; /** Sets the handler extension. @@ -154,6 +158,11 @@ public: This class encapsulates the concept of a platform-dependent bitmap, either monochrome or colour or colour with alpha channel support. + + If you need direct access the bitmap data instead going through + drawing to it using wxMemoryDC you need to use the wxPixelData + class (either wxNativePixelData for RGB bitmaps or wxAlphaPixelData + for bitmaps with an additionaly alpha channel). @note Many wxBitmap functions take a @e type parameter, which is a value of the @@ -174,7 +183,7 @@ public: ::wxNullBitmap @see @ref overview_bitmap, @ref overview_bitmap_supportedformats, - wxDC::Blit, wxIcon, wxCursor, wxBitmap, wxMemoryDC + wxDC::Blit, wxIcon, wxCursor, wxMemoryDC, wxImage, wxPixelData */ class wxBitmap : public wxGDIObject { @@ -367,7 +376,7 @@ public: @param depth The depth of the bitmap in pixels. If this is -1, the screen depth is used. - @returns @true if the call succeeded, @false otherwise. + @return @true if the call succeeded, @false otherwise. This overload depends on the @a type of data. @@ -380,7 +389,7 @@ public: /** Finds the handler with the given @a name. - @returns A pointer to the handler if found, @NULL otherwise. + @return A pointer to the handler if found, @NULL otherwise. */ static wxBitmapHandler* FindHandler(const wxString& name); @@ -392,7 +401,7 @@ public: @param bitmapType The bitmap type managed by the handler, see ::wxBitmapType. - @returns A pointer to the handler if found, @NULL otherwise. + @return A pointer to the handler if found, @NULL otherwise. */ static wxBitmapHandler* FindHandler(const wxString& extension, wxBitmapType bitmapType); @@ -403,7 +412,7 @@ public: @param bitmapType The bitmap type managed by the handler, see ::wxBitmapType. - @returns A pointer to the handler if found, @NULL otherwise. + @return A pointer to the handler if found, @NULL otherwise. @see wxBitmapHandler */ @@ -494,7 +503,7 @@ public: One of the ::wxBitmapType values; see the note in the class detailed description. - @returns @true if the operation succeeded, @false otherwise. + @return @true if the operation succeeded, @false otherwise. @remarks A palette may be associated with the bitmap if one exists (especially for colour Windows bitmaps), and if the @@ -512,7 +521,7 @@ public: @param name The handler name. - @returns @true if the handler was found and removed, @false otherwise. + @return @true if the handler was found and removed, @false otherwise. @see wxBitmapHandler */ @@ -529,7 +538,7 @@ public: @param palette An optional palette used for saving the bitmap. - @returns @true if the operation succeeded, @false otherwise. + @return @true if the operation succeeded, @false otherwise. @remarks Depending on how wxWidgets has been configured, not all formats may be available.