Go to the source code of this file.
|
HBITMAP | CreateDIBWithProperties (int width, int height) |
|
HBITMAP | CreateColorDIB (int width, int height, COLORREF rgb) |
|
int | GetDIBWidth (HBITMAP hbm) |
|
int | GetDIBHeight (HBITMAP hbm) |
|
BOOL | SaveDIBToFile (HBITMAP hBitmap, LPTSTR FileName, HDC hDC) |
|
HBITMAP | DoLoadImageFile (HWND hwnd, LPCTSTR name, BOOL fIsMainFile) |
|
void | ShowFileLoadError (LPCTSTR name) |
|
HBITMAP | SetBitmapAndInfo (HBITMAP hBitmap, LPCTSTR name, DWORD dwFileSize, BOOL isFile) |
|
◆ CreateColorDIB()
Definition at line 30 of file dib.cpp.
GLint GLint GLsizei width
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
HBITMAP CreateDIBWithProperties(int width, int height)
GLint GLint GLsizei GLsizei height
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)
_In_ ULONG _In_ ULONG rgb
BOOL WINAPI DeleteDC(_In_ HDC)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
Referenced by SetBitmapAndInfo().
◆ CreateDIBWithProperties()
Definition at line 16 of file dib.cpp.
GLint GLint GLsizei width
BITMAPINFOHEADER bmiHeader
struct tagBITMAPINFOHEADER BITMAPINFOHEADER
GLint GLint GLsizei GLsizei height
HBITMAP WINAPI CreateDIBSection(HDC hDC, CONST BITMAPINFO *BitmapInfo, UINT Usage, VOID **Bits, HANDLE hSection, DWORD dwOffset)
Referenced by SelectionModel::CalculateBoundingBoxAndContents(), SelectionModel::CalculateContents(), CreateColorDIB(), ImageModel::Crop(), ImageModel::ImageModel(), and SelectionModel::ScaleContentsToFit().
◆ DoLoadImageFile()
Definition at line 159 of file dib.cpp.
HBITMAP SetBitmapAndInfo(HBITMAP hBitmap, LPCTSTR name, DWORD dwFileSize, BOOL isFile)
#define INVALID_HANDLE_VALUE
void __cdecl Format(UINT nFormatID,...)
BOOL WINAPI FileTimeToLocalFileTime(IN CONST FILETIME *lpFileTime, OUT LPFILETIME lpLocalFileTime)
#define IDS_LOADERRORTEXT
BOOL WINAPI FileTimeToSystemTime(IN CONST FILETIME *lpFileTime, OUT LPSYSTEMTIME lpSystemTime)
int WINAPI MessageBoxW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_ UINT)
BOOL WINAPI FindClose(HANDLE hFindFile)
Referenced by _tWinMain(), CMainWindow::OnCommand(), and CMainWindow::OnDropFiles().
◆ GetDIBHeight()
◆ GetDIBWidth()
◆ SaveDIBToFile()
Definition at line 68 of file dib.cpp.
#define INVALID_HANDLE_VALUE
BOOL WINAPI FileTimeToLocalFileTime(IN CONST FILETIME *lpFileTime, OUT LPFILETIME lpLocalFileTime)
void SetMostRecentFile(LPCTSTR szPathName)
BOOL WINAPI FileTimeToSystemTime(IN CONST FILETIME *lpFileTime, OUT LPSYSTEMTIME lpSystemTime)
void ShowFileLoadError(LPCTSTR name)
RegistrySettings registrySettings
BOOL WINAPI FindClose(HANDLE hFindFile)
Referenced by CMainWindow::OnCommand(), and ImageModel::SaveImage().
◆ SetBitmapAndInfo()
Definition at line 108 of file dib.cpp.
HDC WINAPI GetDC(_In_opt_ HWND)
void __cdecl Format(UINT nFormatID,...)
BOOL SetWindowText(LPCTSTR lpszString)
void SetMostRecentFile(LPCTSTR szPathName)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HBITMAP CreateColorDIB(int width, int height, COLORREF rgb)
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
RegistrySettings registrySettings
#define IDS_DEFAULTFILENAME
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Referenced by DoLoadImageFile(), and CMainWindow::OnCommand().
◆ ShowFileLoadError()
Definition at line 99 of file dib.cpp.
void __cdecl Format(UINT nFormatID,...)
#define MB_ICONEXCLAMATION
#define IDS_LOADERRORTEXT
BOOL LoadString(_In_ UINT nID)
int MessageBox(LPCTSTR lpszText, LPCTSTR lpszCaption=NULL, UINT nType=MB_OK)
Referenced by SaveDIBToFile().