From: Vadim Zeitlin Date: Thu, 16 Dec 1999 23:13:23 +0000 (+0000) Subject: changed wxImage::Rescale() to return wxImage& and not void X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6e807169c4b63b29b42c36ae15141a31adb29204 changed wxImage::Rescale() to return wxImage& and not void git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/latex/wx/image.tex b/docs/latex/wx/image.tex index bb30df8ff8..f1b4eb2637 100644 --- a/docs/latex/wx/image.tex +++ b/docs/latex/wx/image.tex @@ -451,11 +451,13 @@ mimetype to the named file} \membersection{wxImage::Rescale}\label{wximagerescale} -\func{wxImage}{Rescale}{\param{int}{ width}, \param{int}{ height}} +\func{wxImage \&}{Rescale}{\param{int}{ width}, \param{int}{ height}} Changes the size of the image in-place: after a call to this function, the image will have the given width and height. +Returns the (modified) image itself. + \wxheading{See also} \helpref{Scale}{wximagescale} diff --git a/include/wx/image.h b/include/wx/image.h index 93d16b3778..bbe0f2e6f9 100644 --- a/include/wx/image.h +++ b/include/wx/image.h @@ -255,7 +255,7 @@ public: wxImage Scale( int width, int height ) const; // rescales the image in place - void Rescale( int width, int height ) { *this = Scale(width, height); } + wxImage& Rescale( int width, int height ) { return *this = Scale(width, height); } // these routines are slow but safe void SetRGB( int x, int y, unsigned char r, unsigned char g, unsigned char b );