virtual int GetWidth() const = 0;
virtual int GetDepth() const = 0;
+ wxSize GetSize() const
+ { return wxSize(GetWidth(), GetHeight()); }
+
#if wxUSE_IMAGE
virtual wxImage ConvertToImage() const = 0;
#endif // wxUSE_IMAGE
int GetWidth() const;
int GetHeight() const;
+ wxSize GetSize() const
+ { return wxSize(GetWidth(), GetHeight()); }
+
// Gets the type of image found by LoadFile or specified with SaveFile
wxBitmapType GetType() const;
/**
Gets the height of the bitmap in pixels.
+
+ @see GetWidth(), GetSize()
*/
virtual int GetHeight() const;
*/
virtual wxBitmap GetSubBitmap(const wxRect& rect) const;
+ /**
+ Returns the size of the bitmap in pixels.
+
+ @since 2.9.0
+
+ @see GetHeight(), GetWidth()
+ */
+ wxSize GetSize() const;
+
/**
Gets the width of the bitmap in pixels.
- @see GetHeight()
+ @see GetHeight(), GetSize()
*/
virtual int GetWidth() const;
/**
Gets the height of the image in pixels.
+
+ @see GetWidth(), GetSize()
*/
int GetHeight() const;
*/
wxImage GetSubImage(const wxRect& rect) const;
+ /**
+ Returns the size of the image in pixels.
+
+ @since 2.9.0
+
+ @see GetHeight(), GetWidth()
+ */
+ wxSize GetSize() const;
+
/**
Gets the type of image found by LoadFile() or specified with SaveFile().
/**
Gets the width of the image in pixels.
- @see GetHeight()
+ @see GetHeight(), GetSize()
*/
int GetWidth() const;