Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
606 B

  1. typedef DWORD huge * LPHISTOGRAM;
  2. #define RGB16(r,g,b) (\
  3. (((WORD)(r) >> 3) << 10) | \
  4. (((WORD)(g) >> 3) << 5) | \
  5. (((WORD)(b) >> 3) << 0) )
  6. LPHISTOGRAM InitHistogram(LPHISTOGRAM lpHistogram);
  7. void FreeHistogram(LPHISTOGRAM lpHistogram);
  8. HPALETTE HistogramPalette(LPHISTOGRAM lpHistogram, LPBYTE lp16to8, int nColors);
  9. BOOL DibHistogram(LPBITMAPINFOHEADER lpbi, LPBYTE lpBits, int x, int y, int dx, int dy, LPHISTOGRAM lpHistogram);
  10. HANDLE DibReduce(LPBITMAPINFOHEADER lpbi, LPBYTE lpBits, HPALETTE hpal, LPBYTE lp16to8);