13 lines
606 B
C
13 lines
606 B
C
|
typedef DWORD huge * LPHISTOGRAM;
|
||
|
|
||
|
#define RGB16(r,g,b) (\
|
||
|
(((WORD)(r) >> 3) << 10) | \
|
||
|
(((WORD)(g) >> 3) << 5) | \
|
||
|
(((WORD)(b) >> 3) << 0) )
|
||
|
|
||
|
LPHISTOGRAM InitHistogram(LPHISTOGRAM lpHistogram);
|
||
|
void FreeHistogram(LPHISTOGRAM lpHistogram);
|
||
|
HPALETTE HistogramPalette(LPHISTOGRAM lpHistogram, LPBYTE lp16to8, int nColors);
|
||
|
BOOL DibHistogram(LPBITMAPINFOHEADER lpbi, LPBYTE lpBits, int x, int y, int dx, int dy, LPHISTOGRAM lpHistogram);
|
||
|
HANDLE DibReduce(LPBITMAPINFOHEADER lpbi, LPBYTE lpBits, HPALETTE hpal, LPBYTE lp16to8);
|