allow raw access to a part of the image only (faster when using alpha)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-05-01 16:37:51 +00:00
parent b72b192036
commit a452af5e68
3 changed files with 94 additions and 20 deletions

View File

@@ -260,7 +260,9 @@ public:
{
SetClientSize(SIZE, SIZE);
wxAlphaPixelData data(m_bitmap);
wxAlphaPixelData data(m_bitmap,
wxPoint(BORDER, BORDER),
wxSize(REAL_SIZE, REAL_SIZE));
if ( !data )
{
wxLogError(_T("Failed to gain raw access to bitmap data"));
@@ -271,8 +273,6 @@ public:
wxAlphaPixelData::Iterator p(data);
p.Offset(data, BORDER, BORDER);
for ( int y = 0; y < REAL_SIZE; ++y )
{
wxAlphaPixelData::Iterator rowStart = p;