Lines Matching defs:ncolors
453 int bpp, int ncolors, int comp,
470 cmap = new _cmap[ncolors];
515 if ( bpp < 16 && ncolors != 0 )
517 unsigned char* r = new unsigned char[ncolors];
518 unsigned char* g = new unsigned char[ncolors];
519 unsigned char* b = new unsigned char[ncolors];
520 for (int j = 0; j < ncolors; j++)
544 image->SetPalette(wxPalette(ncolors, r, g, b));
936 int ncolors = wxINT32_SWAP_ON_BE( (int)dbuf[0] );
937 if (ncolors == 0)
938 ncolors = 1 << bpp;
950 if ( !DoLoadDib(image, width, height, bpp, ncolors, comp, offset, stream,