O
Old Nick
Guest
Salut,
J'ai écrit un code pour afficher la sortie d'un appareil photo 64x64 tableau que nous avons conçu, le problème Je ne parviens est que la peinture du tableau à une fenêtre prend trop de temps (environ une seconde ou presque!)
J'utilise une fonction contenant
Code:
hPenArray = CreatePen (PS_SOLID, 0, RGB (g_RGB, 0,0));
hPenOld = SelectObject (hdc, hPenArray);
lb.lbColor = RGB (g_RGB, 0,0);
lb.lbStyle = BS_SOLID;
HBRUSH = CreateBrushIndirect (& lb);
hBrushOld = SelectObject (hdc, HBRUSH);
for (y = 0; y <64; y )
(
pour (x = 0; x <64; x )
Rectangle (hdc, * g_X 150, (g_Y 1) * 150, (g_X 1) * 150, g_Y * 150);
.
.
.
J'ai écrit un code pour afficher la sortie d'un appareil photo 64x64 tableau que nous avons conçu, le problème Je ne parviens est que la peinture du tableau à une fenêtre prend trop de temps (environ une seconde ou presque!)
J'utilise une fonction contenant
Code:
hPenArray = CreatePen (PS_SOLID, 0, RGB (g_RGB, 0,0));
hPenOld = SelectObject (hdc, hPenArray);
lb.lbColor = RGB (g_RGB, 0,0);
lb.lbStyle = BS_SOLID;
HBRUSH = CreateBrushIndirect (& lb);
hBrushOld = SelectObject (hdc, HBRUSH);
for (y = 0; y <64; y )
(
pour (x = 0; x <64; x )
Rectangle (hdc, * g_X 150, (g_Y 1) * 150, (g_X 1) * 150, g_Y * 150);
.
.
.