Lines Matching refs:pAcc

615 	BitmapWriteAccess*	pAcc = AcquireWriteAccess();  in Invert()  local
618 if( pAcc ) in Invert()
620 if( pAcc->HasPalette() ) in Invert()
622 BitmapPalette aBmpPal( pAcc->GetPalette() ); in Invert()
628 pAcc->SetPalette( aBmpPal ); in Invert()
632 const long nWidth = pAcc->Width(); in Invert()
633 const long nHeight = pAcc->Height(); in Invert()
637 pAcc->SetPixel( nY, nX, pAcc->GetPixel( nY, nX ).Invert() ); in Invert()
640 ReleaseAccess( pAcc ); in Invert()
657 BitmapWriteAccess* pAcc = AcquireWriteAccess(); in Mirror() local
659 if( pAcc ) in Mirror()
661 const long nWidth = pAcc->Width(); in Mirror()
662 const long nHeight = pAcc->Height(); in Mirror()
670 const BitmapColor aTemp( pAcc->GetPixel( nY, nX ) ); in Mirror()
672 pAcc->SetPixel( nY, nX, pAcc->GetPixel( nY, nOther ) ); in Mirror()
673 pAcc->SetPixel( nY, nOther, aTemp ); in Mirror()
677 ReleaseAccess( pAcc ); in Mirror()
683 BitmapWriteAccess* pAcc = AcquireWriteAccess(); in Mirror() local
685 if( pAcc ) in Mirror()
687 const long nScanSize = pAcc->GetScanlineSize(); in Mirror()
689 const long nHeight = pAcc->Height(); in Mirror()
695 memcpy( pBuffer, pAcc->GetScanline( nY ), nScanSize ); in Mirror()
696 memcpy( pAcc->GetScanline( nY ), pAcc->GetScanline( nOther ), nScanSize ); in Mirror()
697 memcpy( pAcc->GetScanline( nOther ), pBuffer, nScanSize ); in Mirror()
701 ReleaseAccess( pAcc ); in Mirror()
707 BitmapWriteAccess* pAcc = AcquireWriteAccess(); in Mirror() local
709 if( pAcc ) in Mirror()
711 const long nWidth = pAcc->Width(); in Mirror()
713 const long nHeight = pAcc->Height(); in Mirror()
720 const BitmapColor aTemp( pAcc->GetPixel( nY, nX ) ); in Mirror()
722 pAcc->SetPixel( nY, nX, pAcc->GetPixel( nOtherY, nOtherX ) ); in Mirror()
723 pAcc->SetPixel( nOtherY, nOtherX, aTemp ); in Mirror()
732 const BitmapColor aTemp( pAcc->GetPixel( nHeight_2, nX ) ); in Mirror()
733 pAcc->SetPixel( nHeight_2, nX, pAcc->GetPixel( nHeight_2, nOtherX ) ); in Mirror()
734 pAcc->SetPixel( nHeight_2, nOtherX, aTemp ); in Mirror()
738 ReleaseAccess( pAcc ); in Mirror()
1489 BitmapWriteAccess* pAcc = AcquireWriteAccess(); in Replace() local
1492 if( pMaskAcc && pAcc ) in Replace()
1494 const long nWidth = Min( pMaskAcc->Width(), pAcc->Width() ); in Replace()
1495 const long nHeight = Min( pMaskAcc->Height(), pAcc->Height() ); in Replace()
1499 if( pAcc->HasPalette() ) in Replace()
1501 const sal_uInt16 nActColors = pAcc->GetPaletteEntryCount(); in Replace()
1502 const sal_uInt16 nMaxColors = 1 << pAcc->GetBitCount(); in Replace()
1505 aReplace = pAcc->GetBestMatchingColor( rReplaceColor ); in Replace()
1509 if( pAcc->GetPaletteColor( aReplace.GetIndex() ) != BitmapColor( rReplaceColor ) ) in Replace()
1514 pAcc->SetPaletteEntryCount( nActColors + 1 ); in Replace()
1515 pAcc->SetPaletteColor( nActColors, rReplaceColor ); in Replace()
1527 pFlags[ pAcc->GetPixelIndex( nY, nX ) ] = sal_True; in Replace()
1534 pAcc->SetPaletteColor( (sal_uInt16) i, rReplaceColor ); in Replace()
1549 pAcc->SetPixel( nY, nX, aReplace ); in Replace()
1555 ReleaseAccess( pAcc ); in Replace()
1565 BitmapReadAccess* pAcc = AcquireReadAccess(); in Replace() local
1570 if( pAcc && pAlphaAcc && pNewAcc ) in Replace()
1573 const long nWidth = Min( pAlphaAcc->Width(), pAcc->Width() ); in Replace()
1574 const long nHeight = Min( pAlphaAcc->Height(), pAcc->Height() ); in Replace()
1580 aCol = pAcc->GetColor( nY, nX ); in Replace()
1588 ReleaseAccess( pAcc ); in Replace()
1615 BitmapWriteAccess* pAcc = AcquireWriteAccess(); in Replace() local
1618 if( pAcc ) in Replace()
1627 if( pAcc->HasPalette() ) in Replace()
1629 for( sal_uInt16 i = 0, nPalCount = pAcc->GetPaletteEntryCount(); i < nPalCount; i++ ) in Replace()
1631 const BitmapColor& rCol = pAcc->GetPaletteColor( i ); in Replace()
1637 pAcc->SetPaletteColor( i, rReplaceColor ); in Replace()
1644 const BitmapColor aReplace( pAcc->GetBestMatchingColor( rReplaceColor ) ); in Replace()
1646 for( long nY = 0L, nHeight = pAcc->Height(); nY < nHeight; nY++ ) in Replace()
1648 for( long nX = 0L, nWidth = pAcc->Width(); nX < nWidth; nX++ ) in Replace()
1650 aCol = pAcc->GetPixel( nY, nX ); in Replace()
1656 pAcc->SetPixel( nY, nX, aReplace ); in Replace()
1662 ReleaseAccess( pAcc ); in Replace()
1679 BitmapWriteAccess* pAcc = AcquireWriteAccess(); in Replace() local
1682 if( pAcc ) in Replace()
1714 if( pAcc->HasPalette() ) in Replace()
1716 …for( sal_uInt16 nEntry = 0, nPalCount = pAcc->GetPaletteEntryCount(); nEntry < nPalCount; nEntry++… in Replace()
1718 const BitmapColor& rCol = pAcc->GetPaletteColor( nEntry ); in Replace()
1726 pAcc->SetPaletteColor( (sal_uInt16)nEntry, pReplaceColors[ i ] ); in Replace()
1738 pReplaces[ i ] = pAcc->GetBestMatchingColor( pReplaceColors[ i ] ); in Replace()
1740 for( long nY = 0L, nHeight = pAcc->Height(); nY < nHeight; nY++ ) in Replace()
1742 for( long nX = 0L, nWidth = pAcc->Width(); nX < nWidth; nX++ ) in Replace()
1744 aCol = pAcc->GetPixel( nY, nX ); in Replace()
1752 pAcc->SetPixel( nY, nX, pReplaces[ i ] ); in Replace()
1771 ReleaseAccess( pAcc ); in Replace()
1834 BitmapWriteAccess* pAcc = AcquireWriteAccess(); in CombineSimple() local
1837 if( pMaskAcc && pAcc ) in CombineSimple()
1839 const long nWidth = Min( pMaskAcc->Width(), pAcc->Width() ); in CombineSimple()
1840 const long nHeight = Min( pMaskAcc->Height(), pAcc->Height() ); in CombineSimple()
1844 const BitmapColor aWhite( pAcc->GetBestMatchingColor( Color( COL_WHITE ) ) ); in CombineSimple()
1845 const BitmapColor aBlack( pAcc->GetBestMatchingColor( aColBlack ) ); in CombineSimple()
1855 pAcc->SetPixel( nY, nX, aBlack ); in CombineSimple()
1857 pAcc->SetPixel( nY, nX, aWhite ); in CombineSimple()
1866 if( pAcc->GetPixel( nY, nX ) == aBlack ) in CombineSimple()
1867 pAcc->SetPixel( nY, nX, aWhite ); in CombineSimple()
1869 pAcc->SetPixel( nY, nX, aBlack ); in CombineSimple()
1878 if( pMaskAcc->GetPixel( nY, nX ) != aMaskBlack && pAcc->GetPixel( nY, nX ) != aBlack ) in CombineSimple()
1879 pAcc->SetPixel( nY, nX, aWhite ); in CombineSimple()
1881 pAcc->SetPixel( nY, nX, aBlack ); in CombineSimple()
1890 if( pMaskAcc->GetPixel( nY, nX ) != aMaskBlack && pAcc->GetPixel( nY, nX ) != aBlack ) in CombineSimple()
1891 pAcc->SetPixel( nY, nX, aBlack ); in CombineSimple()
1893 pAcc->SetPixel( nY, nX, aWhite ); in CombineSimple()
1902 if( pMaskAcc->GetPixel( nY, nX ) != aMaskBlack || pAcc->GetPixel( nY, nX ) != aBlack ) in CombineSimple()
1903 pAcc->SetPixel( nY, nX, aWhite ); in CombineSimple()
1905 pAcc->SetPixel( nY, nX, aBlack ); in CombineSimple()
1914 if( pMaskAcc->GetPixel( nY, nX ) != aMaskBlack || pAcc->GetPixel( nY, nX ) != aBlack ) in CombineSimple()
1915 pAcc->SetPixel( nY, nX, aBlack ); in CombineSimple()
1917 pAcc->SetPixel( nY, nX, aWhite ); in CombineSimple()
1926 aPixel = pAcc->GetPixel( nY, nX ); in CombineSimple()
1932 pAcc->SetPixel( nY, nX, aWhite ); in CombineSimple()
1935 pAcc->SetPixel( nY, nX, aBlack ); in CombineSimple()
1944 aPixel = pAcc->GetPixel( nY, nX ); in CombineSimple()
1950 pAcc->SetPixel( nY, nX, aBlack ); in CombineSimple()
1953 pAcc->SetPixel( nY, nX, aWhite ); in CombineSimple()
1963 ReleaseAccess( pAcc ); in CombineSimple()
1981 BitmapWriteAccess* pAcc = AcquireWriteAccess(); in Blend() local
1984 if( pAlphaAcc && pAcc ) in Blend()
1986 const long nWidth = Min( pAlphaAcc->Width(), pAcc->Width() ); in Blend()
1987 const long nHeight = Min( pAlphaAcc->Height(), pAcc->Height() ); in Blend()
1991 pAcc->SetPixel( nY, nX, in Blend()
1992 pAcc->GetPixel( nY, nX ).Merge( rBackgroundColor, in Blend()
1999 ReleaseAccess( pAcc ); in Blend()