xref: /reactos/base/applications/mspaint/dib.h (revision 5100859e)
1 /*
2  * PROJECT:     PAINT for ReactOS
3  * LICENSE:     LGPL
4  * FILE:        base/applications/mspaint/dib.h
5  * PURPOSE:     Some DIB related functions
6  * PROGRAMMERS: Benedikt Freisen
7  */
8 
9 #pragma once
10 
11 HBITMAP CreateDIBWithProperties(int width, int height);
12 
13 int GetDIBWidth(HBITMAP hbm);
14 
15 int GetDIBHeight(HBITMAP hbm);
16 
17 void SaveDIBToFile(HBITMAP hBitmap, LPTSTR FileName, HDC hDC, LPSYSTEMTIME time, int *size, int hRes,
18                    int vRes);
19 
20 void LoadDIBFromFile(HBITMAP *hBitmap, LPCTSTR name, LPSYSTEMTIME time, int *size, int *hRes, int *vRes);
21 
22 void ShowFileLoadError(LPCTSTR name);
23