Lines Matching refs:nColors
677 sal_uInt16 nColors = mpFileHeader->nColorMapLength; in ImplReadPalette() local
679 if ( !nColors ) // colors == 0 ? -> we will build a grayscale palette in ImplReadPalette()
683 nColors = 256; in ImplReadPalette()
687 mpColorMap = new sal_uInt32[ nColors ]; // we will always index dwords in ImplReadPalette()
695 for ( sal_uLong i = 0; i < nColors; i++ ) in ImplReadPalette()
703 mpTGA->Read( mpColorMap, 4 * nColors ); in ImplReadPalette()
708 for ( sal_uLong i = 0; i < nColors; i++ ) in ImplReadPalette()
718 for ( sal_uLong i = 0; i < nColors; i++ ) in ImplReadPalette()
734 if ( nColors > nDestColors ) in ImplReadPalette()
737 mpAcc->SetPaletteEntryCount( nColors ); in ImplReadPalette()
738 for ( sal_uInt16 i = 0; i < nColors; i++ ) in ImplReadPalette()