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 HBITMAP CreateColorDIB(int width, int height, COLORREF rgb); 13 14 int GetDIBWidth(HBITMAP hbm); 15 16 int GetDIBHeight(HBITMAP hbm); 17 18 BOOL SaveDIBToFile(HBITMAP hBitmap, LPTSTR FileName, HDC hDC); 19 20 HBITMAP DoLoadImageFile(HWND hwnd, LPCTSTR name, BOOL fIsMainFile); 21 22 void ShowFileLoadError(LPCTSTR name); 23 24 HBITMAP SetBitmapAndInfo(HBITMAP hBitmap, LPCTSTR name, DWORD dwFileSize, BOOL isFile); 25