Lines Matching refs:palette
45 #include "wx/palette.h"
1454 unsigned char *palette, int desiredNoColours)
1476 palette[3 * i + 0] = dec.colormap[0][i];
1477 palette[3 * i + 1] = dec.colormap[1][i];
1478 palette[3 * i + 2] = dec.colormap[2][i];
1512 // Shift the palette up by the number of Windows system colours,
1531 unsigned char palette[3*256];
1533 // This is the image as represented by palette indexes.
1539 //RGB->palette
1540 DoQuantize(w, h, rows, outrows, palette, desiredNoColours);
1545 // palette->RGB(max.256)
1556 imgdt[3 * i + 0/*R*/] = palette[3 * c + 0];
1557 imgdt[3 * i + 1/*G*/] = palette[3 * c + 1];
1558 imgdt[3 * i + 2/*B*/] = palette[3 * c + 2];
1567 // We need to shift the palette entries up
1579 // Make a wxWidgets palette
1607 r[i+paletteShift] = palette[i*3 + 0];
1608 g[i+paletteShift] = palette[i*3 + 1];
1609 b[i+paletteShift] = palette[i*3 + 2];
1612 // Blank out any remaining palette entries
1629 // This version sets a palette in the destination image so you don't
1638 wxPalette* palette = NULL;
1639 if ( !Quantize(src, dest, & palette, desiredNoColours, eightBitData, flags) )
1643 if (palette)
1645 dest.SetPalette(* palette);
1646 delete palette;