git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20364
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
SetClientSize(SIZE, SIZE);
{
SetClientSize(SIZE, SIZE);
- wxRawBitmapData data(m_bitmap);
+ wxAlphaPixelData data(m_bitmap);
if ( !data )
{
wxLogError(_T("Failed to gain raw access to bitmap data"));
if ( !data )
{
wxLogError(_T("Failed to gain raw access to bitmap data"));
- wxRawBitmapIterator p(data);
+ wxAlphaPixelData::Iterator p(data);
- p.Offset(BORDER, BORDER);
+ p.Offset(data, BORDER, BORDER);
for ( int y = 0; y < REAL_SIZE; ++y )
{
for ( int y = 0; y < REAL_SIZE; ++y )
{
- wxRawBitmapIterator rowStart = p;
+ wxAlphaPixelData::Iterator rowStart = p;
int r = y < REAL_SIZE/3 ? 255 : 0,
g = (REAL_SIZE/3 <= y) && (y < 2*(REAL_SIZE/3)) ? 255 : 0,
int r = y < REAL_SIZE/3 ? 255 : 0,
g = (REAL_SIZE/3 <= y) && (y < 2*(REAL_SIZE/3)) ? 255 : 0,