Lines Matching refs:pWriteAcc
536 BitmapWriteAccess* pWriteAcc = AcquireWriteAccess(); in Erase() local
539 if( pWriteAcc ) in Erase()
541 const sal_uLong nFormat = pWriteAcc->GetScanlineFormat(); in Erase()
550 cIndex = (sal_uInt8) pWriteAcc->GetBestPaletteIndex( rFillColor ); in Erase()
559 cIndex = (sal_uInt8) pWriteAcc->GetBestPaletteIndex( rFillColor ); in Erase()
567 cIndex = (sal_uInt8) pWriteAcc->GetBestPaletteIndex( rFillColor ); in Erase()
593 const sal_uLong nBufSize = pWriteAcc->GetScanlineSize() * pWriteAcc->Height(); in Erase()
594 memset( pWriteAcc->GetBuffer(), cIndex, nBufSize ); in Erase()
599 const Rectangle aRect( aTmpPoint, Size( pWriteAcc->Width(), pWriteAcc->Height() ) ); in Erase()
600 pWriteAcc->SetFillColor( rFillColor ); in Erase()
601 pWriteAcc->FillRect( aRect ); in Erase()
604 ReleaseAccess( pWriteAcc ); in Erase()
774 BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess(); in Rotate() local
776 if( pWriteAcc ) in Rotate()
789 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nOtherY++, nOtherX ) ); in Rotate()
795 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nOtherY--, nOtherX ) ); in Rotate()
798 aNewBmp.ReleaseAccess( pWriteAcc ); in Rotate()
813 BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess(); in Rotate() local
815 if( pWriteAcc ) in Rotate()
817 const BitmapColor aFillColor( pWriteAcc->GetBestMatchingColor( rFillColor ) ); in Rotate()
864 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nRotY, nRotX ) ); in Rotate()
866 pWriteAcc->SetPixel( nY, nX, aFillColor ); in Rotate()
875 aNewBmp.ReleaseAccess( pWriteAcc ); in Rotate()
910 BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess(); in Crop() local
912 if( pWriteAcc ) in Crop()
921 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nY2, nX2 ) ); in Crop()
923 aNewBmp.ReleaseAccess( pWriteAcc ); in Crop()
1022 BitmapWriteAccess* pWriteAcc = AcquireWriteAccess(); in CopyPixel() local
1024 if( pWriteAcc ) in CopyPixel()
1032 if( pReadAcc->HasPalette() && pWriteAcc->HasPalette() ) 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()
1053 …pWriteAcc->SetPixel( nDstY, nDstX, pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nSrcY, nSrc… in CopyPixel()
1058 pWriteAcc->SetPixel( nDstY, nDstX, pReadAcc->GetPixel( nSrcY, nSrcX ) ); in CopyPixel()
1060 ReleaseAccess( pWriteAcc ); in CopyPixel()
1076 BitmapWriteAccess* pWriteAcc = AcquireWriteAccess(); in CopyPixel() local
1078 if( pWriteAcc ) in CopyPixel()
1095 pWriteAcc->SetPixel( nYN, nXN, pWriteAcc->GetPixel( nY, nX ) ); in CopyPixel()
1101 pWriteAcc->SetPixel( nYN, nXN, pWriteAcc->GetPixel( nY, nX ) ); in CopyPixel()
1107 pWriteAcc->SetPixel( nYN, nXN, pWriteAcc->GetPixel( nY, nX ) ); in CopyPixel()
1113 pWriteAcc->SetPixel( nYN, nXN, pWriteAcc->GetPixel( nY, nX ) ); in CopyPixel()
1116 ReleaseAccess( pWriteAcc ); in CopyPixel()
1144 BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess(); in Expand() local
1146 if( pWriteAcc ) in Expand()
1151 const long nNewWidth = pWriteAcc->Width(); in Expand()
1152 const long nNewHeight = pWriteAcc->Height(); in Expand()
1157 aColor = pWriteAcc->GetBestMatchingColor( *pInitColor ); in Expand()
1161 pWriteAcc->CopyScanline( nY, *pReadAcc ); in Expand()
1165 pWriteAcc->SetPixel( nY, nX, aColor ); in Expand()
1171 pWriteAcc->SetPixel( nY, nX, aColor ); in Expand()
1173 aNewBmp.ReleaseAccess( pWriteAcc ); in Expand()
1192 BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess(); in CreateMask() local
1195 if( pWriteAcc ) in CreateMask()
1203 const BitmapColor aBlack( pWriteAcc->GetBestMatchingColor( Color( COL_BLACK ) ) ); in CreateMask()
1204 const BitmapColor aWhite( pWriteAcc->GetBestMatchingColor( Color( COL_WHITE ) ) ); in CreateMask()
1218 if( pWriteAcc->GetScanlineFormat() == BMP_FORMAT_1BIT_MSB_PAL && in CreateMask()
1225 Scanline pDst = pWriteAcc->GetScanline( nY ); in CreateMask()
1243 pWriteAcc->SetPixel( nY, nX, aWhite ); in CreateMask()
1245 pWriteAcc->SetPixel( nY, nX, aBlack ); in CreateMask()
1255 if( pWriteAcc->GetScanlineFormat() == BMP_FORMAT_1BIT_MSB_PAL && in CreateMask()
1262 Scanline pDst = pWriteAcc->GetScanline( nY ); in CreateMask()
1280 pWriteAcc->SetPixel( nY, nX, aWhite ); in CreateMask()
1282 pWriteAcc->SetPixel( nY, nX, aBlack ); in CreateMask()
1295 pWriteAcc->SetPixel( nY, nX, aWhite ); in CreateMask()
1297 pWriteAcc->SetPixel( nY, nX, aBlack ); in CreateMask()
1328 pWriteAcc->SetPixel( nY, nX, aWhite ); in CreateMask()
1331 pWriteAcc->SetPixel( nY, nX, aBlack ); in CreateMask()
1350 pWriteAcc->SetPixel( nY, nX, aWhite ); in CreateMask()
1353 pWriteAcc->SetPixel( nY, nX, aBlack ); in CreateMask()
1363 aNewBmp.ReleaseAccess( pWriteAcc ); in CreateMask()