Go to the source code of this file.
static HBITMAP CreateDIB16 |
( |
CSize |
size | ) |
|
|
static |
Definition at line 15 of file GDIUtils.h.
19 bi.bmi.biSize =
sizeof(bi.bmi);
20 bi.bmi.biWidth = size.cx;
21 bi.bmi.biHeight = size.cy;
23 bi.bmi.biBitCount = 16;
24 bi.bmi.biCompression = BI_RGB;
26 return CreateDIBSection(NULL, reinterpret_cast<const BITMAPINFO*>(&bi), DIB_RGB_COLORS,&bitsPtr,0,0);
static HBITMAP CreateDIB24 |
( |
CSize |
size | ) |
|
|
static |
Definition at line 1 of file GDIUtils.h.
5 bi.bmi.biSize =
sizeof(bi.bmi);
6 bi.bmi.biWidth = size.cx;
7 bi.bmi.biHeight = size.cy;
9 bi.bmi.biBitCount = 24;
10 bi.bmi.biCompression = BI_RGB;
12 return CreateDIBSection(NULL, reinterpret_cast<const BITMAPINFO*>(&bi), DIB_RGB_COLORS,&bitsPtr,0,0);
static HBITMAP CreateDIB8 |
( |
CSize |
size, |
|
|
const COLORREF |
palette[256] |
|
) |
| |
|
static |
Definition at line 29 of file GDIUtils.h.
34 for(
int c = 0; c < 256; ++c ) bi.colors[c] = palette[c];
35 bi.bmi.biSize =
sizeof(bi.bmi);
36 bi.bmi.biWidth = size.cx;
37 bi.bmi.biHeight = size.cy;
39 bi.bmi.biBitCount = 8;
40 bi.bmi.biCompression = BI_RGB;
41 bi.bmi.biClrUsed = 256;
43 return CreateDIBSection(NULL, reinterpret_cast<const BITMAPINFO*>(&bi), DIB_RGB_COLORS,&bitsPtr,0,0);
static void CreatePreferencesHeaderFont |
( |
CFont & |
out, |
|
|
CWindow |
source |
|
) |
| |
|
static |
Definition at line 65 of file GDIUtils.h.
static void CreateScaledFontEx(CFont &out, CFontHandle in, double scale, int weight)
static void CreatePreferencesHeaderFont2 |
( |
CFont & |
out, |
|
|
CWindow |
source |
|
) |
| |
|
static |
Definition at line 69 of file GDIUtils.h.
static void CreateScaledFontEx(CFont &out, CFontHandle in, double scale, int weight)
static void CreateScaledFont |
( |
CFont & |
out, |
|
|
CFontHandle |
in, |
|
|
double |
scale |
|
) |
| |
|
static |
Definition at line 46 of file GDIUtils.h.
48 WIN32_OP_D( in.GetLogFont(lf) );
52 WIN32_OP_D( out.CreateFontIndirect(&lf) != NULL );
int sgn_t(const T &p_val)
void SHARED_EXPORT scale(const audio_sample *p_source, t_size p_count, audio_sample *p_output, audio_sample p_scale)
p_source/p_output can point to same buffer
t_int32 rint32(double p_val)
static void CreateScaledFontEx |
( |
CFont & |
out, |
|
|
CFontHandle |
in, |
|
|
double |
scale, |
|
|
int |
weight |
|
) |
| |
|
static |
Definition at line 55 of file GDIUtils.h.
57 WIN32_OP_D( in.GetLogFont(lf) );
62 WIN32_OP_D( out.CreateFontIndirect(&lf) != NULL );
int sgn_t(const T &p_val)
void SHARED_EXPORT scale(const audio_sample *p_source, t_size p_count, audio_sample *p_output, audio_sample p_scale)
p_source/p_output can point to same buffer
t_int32 rint32(double p_val)
static HBRUSH MakeTempBrush |
( |
HDC |
dc, |
|
|
COLORREF |
color |
|
) |
| |
throw | ( | |
| ) | | |
|
static |
Definition at line 120 of file GDIUtils.h.
121 SetDCBrushColor(dc, color);
return (HBRUSH) GetStockObject(DC_BRUSH);