Grabby/Bitmap.h
snow flurry 585e61636a Create project "Grabby".
git-svn-id: svn://vcs.sdm.2ki.xyz/Grabby/trunk@9 27729192-006e-004d-b9b5-06fbd0ef7001
2024-02-13 21:00:46 +00:00

18 lines
407 B
C

#pragma once
#include "stdafx.h"
typedef struct _Screen {
HDC hdcScreen;
HDC hdcBitmap;
HRGN hScreenRgn;
HBITMAP hBitmap;
HGDIOBJ hOldObj;
} Screen;
// Create a Screen struct.
Screen *CreateScreen(void);
// Write a screen region to the given filename.
int WriteRegionToFile(Screen *, RECT *, LPTSTR);
// Commit a "screenshot" of the screen to scrn->hBitmap
int SnapScreen(Screen *);