Lines Matching refs:colors
70 int colors; /* number of colors */
74 IFFImage() : w(0), h(0), colors(0), p(0), pal(0) {}
149 int colors = GetNumColors();
156 for (i = 0; i < colors; i++)
176 if (pal && colors > 0)
178 unsigned char* r = new unsigned char[colors];
179 unsigned char* g = new unsigned char[colors];
180 unsigned char* b = new unsigned char[colors];
182 for (i = 0; i < colors; i++)
189 image->SetPalette(wxPalette(colors, r, g, b));
217 int wxIFFDecoder::GetNumColors() const { return m_image->colors; }
386 int colors = 0;
420 colors = chunkLen / 3; // calc no of colors
424 m_image->colors = colors;
425 if (colors > 0) {
426 m_image->pal = new byte[3*colors];
432 // copy colors to color map
433 for (int i=0; i < colors; i++) {
440 wxLogTrace(_T("iff"), _T("Read %d colors from IFF file."),
441 colors);
519 case ILBM_NORMAL: colors = 1 << bmhd_bitplanes; break;
520 case ILBM_EHB: colors = 32*2; break;
521 case ILBM_HAM: colors = 16; break;
524 if (colors > m_image->colors) {
525 byte *pal = new byte[colors*3];
531 for (i = 0; i < m_image->colors; i++) {
536 for (; i < colors; i++) {
543 m_image->colors = colors;
546 for (int i=0; i < colors; i++) {
596 case 0x00: if (c >= 0 && c < colors) {
615 case 0x00: if (c >= 0 && c < colors) {
682 if (col >= 0 && col < colors) {