made GetAlpha(x, y) const (the docs are already correct)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
7ef67c25ff
commit
d30ee785c2
@ -198,7 +198,7 @@ public:
|
||||
unsigned char GetBlue( int x, int y ) const;
|
||||
|
||||
void SetAlpha(int x, int y, unsigned char alpha);
|
||||
unsigned char GetAlpha(int x, int y);
|
||||
unsigned char GetAlpha(int x, int y) const;
|
||||
|
||||
// find first colour that is not used in the image and has higher
|
||||
// RGB values than <startR,startG,startB>
|
||||
|
@ -796,7 +796,7 @@ void wxImage::SetAlpha(int x, int y, unsigned char alpha)
|
||||
M_IMGDATA->m_alpha[y*w + x] = alpha;
|
||||
}
|
||||
|
||||
unsigned char wxImage::GetAlpha(int x, int y)
|
||||
unsigned char wxImage::GetAlpha(int x, int y) const
|
||||
{
|
||||
wxCHECK_MSG( Ok() && HasAlpha(), 0, wxT("invalid image or no alpha channel") );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user