Skip to content

Instantly share code, notes, and snippets.

@pankoza2-pl
pankoza2-pl / darkr.cpp
Created April 9, 2022 08:04
C++ GDI Screen Darkener
#include <windows.h>
int main() {
HDC hdc;
int w = GetSystemMetrics(0);
int h = GetSystemMetrics(1);
while (1) {
hdc = GetDC(0);
BitBlt(hdc, rand() % 2, rand() % 2, w, h, hdc, rand() % 2, rand() % 2, SRCAND);
Sleep(10);
@pankoza2-pl
pankoza2-pl / bmp.h
Created November 14, 2023 14:09 — forked from mhofwell/bmp.h
Applying Filters by Manipulating Pixel Values!
// BMP-related data types based on Microsoft's own
#include <stdint.h>
/**
* Common Data Types
*
* The data types in this section are essentially aliases for C/C++
* primitive data types.
*