Put Pixels in console

Put Pixels in console

SetPixel

See version :

Pas de dépendances

Download :

#include <windows.h>

int main() 
{
    int i,j;
    HWND Hcon = GetConsoleWindow();
    HDC Hdc = GetDC(Hcon);    
    for(i=0;i<255;i++)
    {
        for(j=0;j<255;j++)
        {
            COLORREF COLOR = RGB(i,j,128);
            SetPixel(Hdc,i,j,COLOR);
        }
    }
    ReleaseDC(Hcon, Hdc);
    return 0;
}




Explanations

	No explanations yet.