31 0x000000, 0x464646, 0x787878, 0x300099, 0x241ced, 0x0078ff, 0x0ec2ff,
32 0x00f2ff, 0x1de6a8, 0x4cb122, 0xefb700, 0xf36d4d, 0x99362f, 0x98316f,
33 0xffffff, 0xdcdcdc, 0xb4b4b4, 0x3c5a9c, 0xb1a3ff, 0x7aaae5, 0x9ce4f5,
34 0xbdf9ff, 0xbcf9d3, 0x61bb9d, 0xead999, 0xd19a70, 0x8e6d54, 0xd5a5b5
38 0x000000, 0x808080, 0x000080, 0x008080, 0x008000, 0x808000, 0x800000,
39 0x800080, 0x408080, 0x404000, 0xff8000, 0x804000, 0xff0040, 0x004080,
40 0xffffff, 0xc0c0c0, 0x0000ff, 0x00ffff, 0x00ff00, 0xffff00, 0xff0000,
41 0xff00ff, 0x80ffff, 0x80ff00, 0xffff80, 0xff8080, 0x8000ff, 0x4080ff
45 0x000000, 0x090909, 0x121212, 0x1C1C1C, 0x252525, 0x2F2F2F, 0x383838,
46 0x424242, 0x4B4B4B, 0x555555, 0x5E5E5E, 0x676767, 0x717171, 0x7B7B7B,
47 0xFFFFFF, 0xF6F6F6, 0xEDEDED, 0xE3E3E3, 0xD9D9D9, 0xD0D0D0, 0xC7C7C7,
48 0xBDBDBD, 0xB4B4B4, 0xAAAAAA, 0xA1A1A1, 0x979797, 0x8E8E8E, 0x848484
128 static const BYTE s_bayerMatrix[8][8] =
130 { 0, 32, 8, 40, 2, 34, 10, 42 },
131 { 48, 16, 56, 24, 50, 18, 58, 26 },
132 { 12, 44, 4, 36, 14, 46, 6, 38 },
133 { 60, 28, 52, 20, 62, 30, 54, 22 },
134 { 3, 35, 11, 43, 1, 33, 9, 41 },
135 { 51, 19, 59, 27, 49, 17, 57, 25 },
136 { 15, 47, 7, 39, 13, 45, 5, 37 },
137 { 63, 31, 55, 23, 61, 29, 53, 21 },
143 if (brightness >= 255)
157 for (
INT y = 0;
y < 8; ++
y)
160 for (
INT x = 0;
x < 8; ++
x)
162 const INT threshold = s_bayerMatrix[
y][
x] * 255 / 63;
163 if (brightness > threshold)
#define WM_PALETTEMODELCOLORCHANGED
CTextEditWindow textEditWindow
CCanvasWindow canvasWindow
PAL_TYPE SelectedPalette()
COLORREF GetBgColor() const
void SetFgColor(COLORREF newColor)
void SetBgColor(COLORREF newColor)
void SelectPalette(PAL_TYPE nPalette)
void NotifyPaletteChanged()
void SetColor(UINT nIndex, COLORREF newColor)
COLORREF GetFgColor() const
HBRUSH CreateColorBrush(COLORREF color)
PAL_TYPE m_nSelectedPalette
static HBRUSH CreateDitherBrush(COLORREF color, COLORREF monoColor0, COLORREF monoColor1)
COLORREF GetColor(UINT nIndex) const
COLORREF m_colors[NUM_COLORS]
void NotifyColorChanged()
GLint GLint GLint GLint GLint x
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
GLint GLint GLint GLint GLint GLint y
static CRYPT_DATA_BLOB b1[]
CPaletteWindow paletteWindow
PaletteModel paletteModel
static int sum(int x_, int y_)
BITMAPINFOHEADER bmiHeader
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
HBITMAP WINAPI CreateDIBitmap(_In_ HDC hdc, _In_opt_ const BITMAPINFOHEADER *pbmih, _In_ DWORD fdwInit, _In_opt_ const VOID *pvInit, _In_opt_ const BITMAPINFO *pbmi, _In_ UINT uUsage)
HBRUSH WINAPI CreatePatternBrush(_In_ HBITMAP)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)