Lines Matching refs:pReadAcc
763 BitmapReadAccess* pReadAcc = AcquireReadAccess(); in Rotate() local
766 if( pReadAcc ) in Rotate()
773 Bitmap aNewBmp( aNewSizePix, GetBitCount(), &pReadAcc->GetPalette() ); in Rotate()
789 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nOtherY++, nOtherX ) ); in Rotate()
795 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nOtherY--, nOtherX ) ); in Rotate()
812 Bitmap aNewBmp( aNewSizePix, GetBitCount(), &pReadAcc->GetPalette() ); in Rotate()
864 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nRotY, nRotX ) ); in Rotate()
881 ReleaseAccess( pReadAcc ); in Rotate()
903 BitmapReadAccess* pReadAcc = AcquireReadAccess(); in Crop() local
905 if( pReadAcc ) in Crop()
909 Bitmap aNewBmp( aNewRect.GetSize(), GetBitCount(), &pReadAcc->GetPalette() ); in Crop()
921 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nY2, nX2 ) ); in Crop()
927 ReleaseAccess( pReadAcc ); in Crop()
1018 BitmapReadAccess* pReadAcc = pSrc->AcquireReadAccess(); in CopyPixel() local
1020 if( pReadAcc ) in CopyPixel()
1032 if( pReadAcc->HasPalette() && pWriteAcc->HasPalette() ) in CopyPixel()
1034 const sal_uInt16 nCount = pReadAcc->GetPaletteEntryCount(); in CopyPixel()
1041 pMap[ i ] = (sal_uInt8) pWriteAcc->GetBestPaletteIndex( pReadAcc->GetPaletteColor( i ) ); in CopyPixel()
1045 pWriteAcc->SetPixelIndex( nDstY, nDstX, pMap[ pReadAcc->GetPixelIndex( nSrcY, nSrcX ) ] ); in CopyPixel()
1049 else if( pReadAcc->HasPalette() ) in CopyPixel()
1053 …pWriteAcc->SetPixel( nDstY, nDstX, pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nSrcY, nSrc… in CopyPixel()
1058 pWriteAcc->SetPixel( nDstY, nDstX, pReadAcc->GetPixel( nSrcY, nSrcX ) ); in CopyPixel()
1064 pSrc->ReleaseAccess( pReadAcc ); in CopyPixel()
1138 BitmapReadAccess* pReadAcc = AcquireReadAccess(); in Expand() local
1140 if( pReadAcc ) in Expand()
1142 BitmapPalette aBmpPal( pReadAcc->GetPalette() ); in Expand()
1161 pWriteAcc->CopyScanline( nY, *pReadAcc ); in Expand()
1177 ReleaseAccess( pReadAcc ); in Expand()
1197 BitmapReadAccess* pReadAcc = ( (Bitmap*) this )->AcquireReadAccess(); in CreateMask() local
1199 if( pReadAcc ) in CreateMask()
1201 const long nWidth = pReadAcc->Width(); in CreateMask()
1202 const long nHeight = pReadAcc->Height(); in CreateMask()
1208 const BitmapColor aTest( pReadAcc->GetBestMatchingColor( rTransColor ) ); in CreateMask()
1211 if( pReadAcc->GetScanlineFormat() == BMP_FORMAT_4BIT_MSN_PAL || in CreateMask()
1212 pReadAcc->GetScanlineFormat() == BMP_FORMAT_4BIT_LSN_PAL ) in CreateMask()
1216 … const long nShiftInit = ( ( pReadAcc->GetScanlineFormat() == BMP_FORMAT_4BIT_MSN_PAL ) ? 4 : 0 ); in CreateMask()
1224 Scanline pSrc = pReadAcc->GetScanline( nY ); in CreateMask()
1239 Scanline pSrc = pReadAcc->GetScanline( nY ); in CreateMask()
1250 else if( pReadAcc->GetScanlineFormat() == BMP_FORMAT_8BIT_PAL ) in CreateMask()
1261 Scanline pSrc = pReadAcc->GetScanline( nY ); in CreateMask()
1276 Scanline pSrc = pReadAcc->GetScanline( nY ); in CreateMask()
1294 if( aTest == pReadAcc->GetPixel( nY, nX ) ) in CreateMask()
1313 if( pReadAcc->HasPalette() ) in CreateMask()
1319 aCol = pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nY, nX ) ); in CreateMask()
1341 aCol = pReadAcc->GetPixel( nY, nX ); in CreateMask()
1359 ( (Bitmap*) this )->ReleaseAccess( pReadAcc ); in CreateMask()
1383 BitmapReadAccess* pReadAcc = ( (Bitmap*) this )->AcquireReadAccess(); in CreateRegion() local
1388 if( pReadAcc ) in CreateRegion()
1395 const BitmapColor aMatch( pReadAcc->GetBestMatchingColor( rColor ) ); in CreateRegion()
1411 while( ( nX <= nRight ) && ( aMatch != pReadAcc->GetPixel( nY, nX ) ) ) in CreateRegion()
1419 while( ( nX <= nRight ) && ( aMatch == pReadAcc->GetPixel( nY, nX ) ) ) in CreateRegion()
1476 ( (Bitmap*) this )->ReleaseAccess( pReadAcc ); in CreateRegion()