Lines Matching refs:nX

635 			for( long nX = 0L; nX < nWidth; nX++ )  in Invert()  local
637 pAcc->SetPixel( nY, nX, pAcc->GetPixel( nY, nX ).Invert() ); in Invert()
668 for( long nX = 0L, nOther = nWidth1; nX < nWidth_2; nX++, nOther-- ) in Mirror() local
670 const BitmapColor aTemp( pAcc->GetPixel( nY, nX ) ); in Mirror()
672 pAcc->SetPixel( nY, nX, pAcc->GetPixel( nY, nOther ) ); in Mirror()
718 for( long nX = 0L, nOtherX = nWidth1; nX < nWidth; nX++, nOtherX-- ) in Mirror() local
720 const BitmapColor aTemp( pAcc->GetPixel( nY, nX ) ); in Mirror()
722 pAcc->SetPixel( nY, nX, pAcc->GetPixel( nOtherY, nOtherX ) ); in Mirror()
730 for( long nX = 0L, nOtherX = nWidth1, nWidth_2 = nWidth >> 1; nX < nWidth_2; nX++, nOtherX-- ) in Mirror() local
732 const BitmapColor aTemp( pAcc->GetPixel( nHeight_2, nX ) ); in Mirror()
733 pAcc->SetPixel( nHeight_2, nX, pAcc->GetPixel( nHeight_2, nOtherX ) ); in Mirror()
788 for( long nX = 0L, nOtherY = 0L; nX < nNewWidth; nX++ ) in Rotate() local
789 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nOtherY++, nOtherX ) ); in Rotate()
794 for( long nX = 0L, nOtherY = nHeight1; nX < nNewWidth; nX++ ) in Rotate() local
795 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nOtherY--, nOtherX ) ); in Rotate()
826 long nX; in Rotate() local
837 for ( nX = 0; nX < nNewWidth; nX++ ) in Rotate()
839 const double fTmp = ( fXMin + nX ) * 64.; in Rotate()
841 pCosX[ nX ] = FRound( fCosAngle * fTmp ); in Rotate()
842 pSinX[ nX ] = FRound( fSinAngle * fTmp ); in Rotate()
858 for( nX = 0L; nX < nNewWidth; nX++ ) in Rotate()
860 nRotX = ( pCosX[ nX ] - nSinY ) >> 6; in Rotate()
861 nRotY = ( pSinX[ nX ] + nCosY ) >> 6; in Rotate()
864 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nRotY, nRotX ) ); in Rotate()
866 pWriteAcc->SetPixel( nY, nX, aFillColor ); in Rotate()
920 for( long nX = 0, nX2 = nOldX; nX < nNewWidth; nX++, nX2++ ) in Crop() local
921 pWriteAcc->SetPixel( nY, nX, pReadAcc->GetPixel( nY2, nX2 ) ); in Crop()
1094 for( long nX = nSrcX, nXN = nDstX; nX <= nSrcEndX1; nX++, nXN++ ) in CopyPixel() local
1095 pWriteAcc->SetPixel( nYN, nXN, pWriteAcc->GetPixel( nY, nX ) ); in CopyPixel()
1100 for( long nX = nSrcX, nXN = nDstX; nX <= nSrcEndX1; nX++, nXN++ ) in CopyPixel() local
1101 pWriteAcc->SetPixel( nYN, nXN, pWriteAcc->GetPixel( nY, nX ) ); in CopyPixel()
1106 for( long nX = nSrcEndX1, nXN = nDstEndX1; nX >= nSrcX; nX--, nXN-- ) in CopyPixel() local
1107 pWriteAcc->SetPixel( nYN, nXN, pWriteAcc->GetPixel( nY, nX ) ); in CopyPixel()
1112 for( long nX = nSrcEndX1, nXN = nDstEndX1; nX >= nSrcX; nX--, nXN-- ) in CopyPixel() local
1113 pWriteAcc->SetPixel( nYN, nXN, pWriteAcc->GetPixel( nY, nX ) ); in CopyPixel()
1153 long nX; in Expand() local
1164 for( nX = nNewX; nX < nNewWidth; nX++ ) in Expand()
1165 pWriteAcc->SetPixel( nY, nX, aColor ); in Expand()
1170 for( nX = 0; nX < nNewWidth; nX++ ) in Expand()
1171 pWriteAcc->SetPixel( nY, nX, aColor ); in Expand()
1209 long nX, nY, nShift; in CreateMask() local
1226 for( nX = 0L, nShift = nShiftInit; nX < nWidth; nX++, nShift ^= 4 ) in CreateMask()
1228 if( cTest == ( ( pSrc[ nX >> 1 ] >> nShift ) & 0x0f ) ) in CreateMask()
1229 pDst[ nX >> 3 ] |= 1 << ( 7 - ( nX & 7 ) ); in CreateMask()
1231 pDst[ nX >> 3 ] &= ~( 1 << ( 7 - ( nX & 7 ) ) ); in CreateMask()
1240 for( nX = 0L, nShift = nShiftInit; nX < nWidth; nX++, nShift ^= 4 ) in CreateMask()
1242 if( cTest == ( ( pSrc[ nX >> 1 ] >> nShift ) & 0x0f ) ) in CreateMask()
1243 pWriteAcc->SetPixel( nY, nX, aWhite ); in CreateMask()
1245 pWriteAcc->SetPixel( nY, nX, aBlack ); in CreateMask()
1263 for( nX = 0L; nX < nWidth; nX++ ) in CreateMask()
1265 if( cTest == pSrc[ nX ] ) in CreateMask()
1266 pDst[ nX >> 3 ] |= 1 << ( 7 - ( nX & 7 ) ); in CreateMask()
1268 pDst[ nX >> 3 ] &= ~( 1 << ( 7 - ( nX & 7 ) ) ); in CreateMask()
1277 for( nX = 0L; nX < nWidth; nX++ ) in CreateMask()
1279 if( cTest == pSrc[ nX ] ) in CreateMask()
1280 pWriteAcc->SetPixel( nY, nX, aWhite ); in CreateMask()
1282 pWriteAcc->SetPixel( nY, nX, aBlack ); in CreateMask()
1292 for( nX = 0L; nX < nWidth; nX++ ) in CreateMask()
1294 if( aTest == pReadAcc->GetPixel( nY, nX ) ) in CreateMask()
1295 pWriteAcc->SetPixel( nY, nX, aWhite ); in CreateMask()
1297 pWriteAcc->SetPixel( nY, nX, aBlack ); in CreateMask()
1317 for( long nX = 0L; nX < nWidth; nX++ ) in CreateMask() local
1319 aCol = pReadAcc->GetPaletteColor( pReadAcc->GetPixelIndex( nY, nX ) ); in CreateMask()
1328 pWriteAcc->SetPixel( nY, nX, aWhite ); in CreateMask()
1331 pWriteAcc->SetPixel( nY, nX, aBlack ); in CreateMask()
1339 for( long nX = 0L; nX < nWidth; nX++ ) in CreateMask() local
1341 aCol = pReadAcc->GetPixel( nY, nX ); in CreateMask()
1350 pWriteAcc->SetPixel( nY, nX, aWhite ); in CreateMask()
1353 pWriteAcc->SetPixel( nY, nX, aBlack ); in CreateMask()
1407 long nX(nLeft); in CreateRegion() local
1409 for( ; nX <= nRight; ) in CreateRegion()
1411 while( ( nX <= nRight ) && ( aMatch != pReadAcc->GetPixel( nY, nX ) ) ) in CreateRegion()
1412 nX++; in CreateRegion()
1414 if( nX <= nRight ) in CreateRegion()
1416 aNewLine.push_back(nX); in CreateRegion()
1419 while( ( nX <= nRight ) && ( aMatch == pReadAcc->GetPixel( nY, nX ) ) ) in CreateRegion()
1420 nX++; in CreateRegion()
1423 aNewLine.push_back(nX - 1); in CreateRegion()
1526 for( long nX = 0L; nX < nWidth; nX++ ) in Replace() local
1527 pFlags[ pAcc->GetPixelIndex( nY, nX ) ] = sal_True; in Replace()
1547 for( long nX = 0L; nX < nWidth; nX++ ) in Replace() local
1548 if( pMaskAcc->GetPixel( nY, nX ) == aMaskWhite ) in Replace()
1549 pAcc->SetPixel( nY, nX, aReplace ); in Replace()
1578 for( long nX = 0L; nX < nWidth; nX++ ) in Replace() local
1580 aCol = pAcc->GetColor( nY, nX ); in Replace()
1581 … pNewAcc->SetPixel( nY, nX, aCol.Merge( rMergeColor, 255 - pAlphaAcc->GetPixelIndex( nY, nX ) ) ); in Replace()
1648 for( long nX = 0L, nWidth = pAcc->Width(); nX < nWidth; nX++ ) in Replace() local
1650 aCol = pAcc->GetPixel( nY, nX ); in Replace()
1656 pAcc->SetPixel( nY, nX, aReplace ); in Replace()
1742 for( long nX = 0L, nWidth = pAcc->Width(); nX < nWidth; nX++ ) in Replace() local
1744 aCol = pAcc->GetPixel( nY, nX ); in Replace()
1752 pAcc->SetPixel( nY, nX, pReplaces[ i ] ); in Replace()
1852 for( long nY = 0L; nY < nHeight; nY++ ) for( long nX = 0L; nX < nWidth; nX++ ) in CombineSimple() local
1854 if( pMaskAcc->GetPixel( nY, nX ) == aMaskBlack ) in CombineSimple()
1855 pAcc->SetPixel( nY, nX, aBlack ); in CombineSimple()
1857 pAcc->SetPixel( nY, nX, aWhite ); in CombineSimple()
1864 for( long nY = 0L; nY < nHeight; nY++ ) for( long nX = 0L; nX < nWidth; nX++ ) in CombineSimple() local
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()
1876 for( long nY = 0L; nY < nHeight; nY++ ) for( long nX = 0L; nX < nWidth; nX++ ) in CombineSimple() local
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()
1888 for( long nY = 0L; nY < nHeight; nY++ ) for( long nX = 0L; nX < nWidth; nX++ ) in CombineSimple() local
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()
1900 for( long nY = 0L; nY < nHeight; nY++ ) for( long nX = 0L; nX < nWidth; nX++ ) in CombineSimple() local
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()
1912 for( long nY = 0L; nY < nHeight; nY++ ) for( long nX = 0L; nX < nWidth; nX++ ) in CombineSimple() local
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()
1924 for( long nY = 0L; nY < nHeight; nY++ ) for( long nX = 0L; nX < nWidth; nX++ ) in CombineSimple() local
1926 aPixel = pAcc->GetPixel( nY, nX ); in CombineSimple()
1927 aMaskPixel = pMaskAcc->GetPixel( nY, nX ); in CombineSimple()
1932 pAcc->SetPixel( nY, nX, aWhite ); in CombineSimple()
1935 pAcc->SetPixel( nY, nX, aBlack ); in CombineSimple()
1942 for( long nY = 0L; nY < nHeight; nY++ ) for( long nX = 0L; nX < nWidth; nX++ ) in CombineSimple() local
1944 aPixel = pAcc->GetPixel( nY, nX ); in CombineSimple()
1945 aMaskPixel = pMaskAcc->GetPixel( nY, nX ); in CombineSimple()
1950 pAcc->SetPixel( nY, nX, aBlack ); in CombineSimple()
1953 pAcc->SetPixel( nY, nX, aWhite ); in CombineSimple()
1990 for( long nX = 0L; nX < nWidth; ++nX ) in Blend() local
1991 pAcc->SetPixel( nY, nX, in Blend()
1992 pAcc->GetPixel( nY, nX ).Merge( rBackgroundColor, in Blend()
1993 … 255 - pAlphaAcc->GetPixelIndex( nY, nX ) ) ); in Blend()