Lines Matching refs:rReadAcc
477 void BitmapWriteAccess::CopyScanline( long nY, const BitmapReadAccess& rReadAcc ) in CopyScanline() argument
480 DBG_ASSERT( nY < rReadAcc.Height(), "y-coordinate in source out of range!" ); in CopyScanline()
481 …DBG_ASSERT( ( HasPalette() && rReadAcc.HasPalette() ) || ( !HasPalette() && !rReadAcc.HasPalette()… in CopyScanline()
483 if( ( GetScanlineFormat() == rReadAcc.GetScanlineFormat() ) && in CopyScanline()
484 ( GetScanlineSize() >= rReadAcc.GetScanlineSize() ) ) in CopyScanline()
486 memcpy( mpScanBuf[ nY ], rReadAcc.GetScanline( nY ), rReadAcc.GetScanlineSize() ); in CopyScanline()
490 for( long nX = 0L, nWidth = Min( mpBuffer->mnWidth, rReadAcc.Width() ); nX < nWidth; nX++ ) in CopyScanline()
491 SetPixel( nY, nX, rReadAcc.GetPixel( nY, nX ) ); in CopyScanline()
560 void BitmapWriteAccess::CopyBuffer( const BitmapReadAccess& rReadAcc ) in CopyBuffer() argument
562 …DBG_ASSERT( ( HasPalette() && rReadAcc.HasPalette() ) || ( !HasPalette() && !rReadAcc.HasPalette()… in CopyBuffer()
564 if( ( GetScanlineFormat() == rReadAcc.GetScanlineFormat() ) && in CopyBuffer()
565 ( GetScanlineSize() == rReadAcc.GetScanlineSize() ) ) in CopyBuffer()
567 const long nHeight = Min( mpBuffer->mnHeight, rReadAcc.Height() ); in CopyBuffer()
570 memcpy( mpBuffer->mpBits, rReadAcc.GetBuffer(), nCount ); in CopyBuffer()
573 for( long nY = 0L, nHeight = Min( mpBuffer->mnHeight, rReadAcc.Height() ); nY < nHeight; nY++ ) in CopyBuffer()
574 CopyScanline( nY, rReadAcc ); in CopyBuffer()