provide GetSize() getters in wxBitmap and wxImage
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -161,6 +161,9 @@ public:
|
|||||||
virtual int GetWidth() const = 0;
|
virtual int GetWidth() const = 0;
|
||||||
virtual int GetDepth() const = 0;
|
virtual int GetDepth() const = 0;
|
||||||
|
|
||||||
|
wxSize GetSize() const
|
||||||
|
{ return wxSize(GetWidth(), GetHeight()); }
|
||||||
|
|
||||||
#if wxUSE_IMAGE
|
#if wxUSE_IMAGE
|
||||||
virtual wxImage ConvertToImage() const = 0;
|
virtual wxImage ConvertToImage() const = 0;
|
||||||
#endif // wxUSE_IMAGE
|
#endif // wxUSE_IMAGE
|
||||||
|
@@ -361,6 +361,9 @@ public:
|
|||||||
int GetWidth() const;
|
int GetWidth() const;
|
||||||
int GetHeight() const;
|
int GetHeight() const;
|
||||||
|
|
||||||
|
wxSize GetSize() const
|
||||||
|
{ return wxSize(GetWidth(), GetHeight()); }
|
||||||
|
|
||||||
// Gets the type of image found by LoadFile or specified with SaveFile
|
// Gets the type of image found by LoadFile or specified with SaveFile
|
||||||
wxBitmapType GetType() const;
|
wxBitmapType GetType() const;
|
||||||
|
|
||||||
|
@@ -440,6 +440,8 @@ public:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
Gets the height of the bitmap in pixels.
|
Gets the height of the bitmap in pixels.
|
||||||
|
|
||||||
|
@see GetWidth(), GetSize()
|
||||||
*/
|
*/
|
||||||
virtual int GetHeight() const;
|
virtual int GetHeight() const;
|
||||||
|
|
||||||
@@ -465,10 +467,19 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual wxBitmap GetSubBitmap(const wxRect& rect) 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.
|
Gets the width of the bitmap in pixels.
|
||||||
|
|
||||||
@see GetHeight()
|
@see GetHeight(), GetSize()
|
||||||
*/
|
*/
|
||||||
virtual int GetWidth() const;
|
virtual int GetWidth() const;
|
||||||
|
|
||||||
|
@@ -705,6 +705,8 @@ public:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
Gets the height of the image in pixels.
|
Gets the height of the image in pixels.
|
||||||
|
|
||||||
|
@see GetWidth(), GetSize()
|
||||||
*/
|
*/
|
||||||
int GetHeight() const;
|
int GetHeight() const;
|
||||||
|
|
||||||
@@ -876,6 +878,15 @@ public:
|
|||||||
*/
|
*/
|
||||||
wxImage GetSubImage(const wxRect& rect) 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 type of image found by LoadFile() or specified with SaveFile().
|
||||||
|
|
||||||
@@ -886,7 +897,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Gets the width of the image in pixels.
|
Gets the width of the image in pixels.
|
||||||
|
|
||||||
@see GetHeight()
|
@see GetHeight(), GetSize()
|
||||||
*/
|
*/
|
||||||
int GetWidth() const;
|
int GetWidth() const;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user