Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void drawBmp(DIB dib, PixelArray arr)
- {
- HWND console = GetConsoleWindow();
- HDC hdc = GetDC(console);
- for (int i = 0; i < dib.heightImage; i++)
- for (int j = 0; j < dib.widthImage; j++)
- {
- Color pixel = arr.data[i][j];
- SetPixel(hdc, j, i, RGB(pixel.red, pixel.green, pixel.blue));
- }
- ReleaseDC(console, hdc);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement