summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src/Utils.h
diff options
context:
space:
mode:
authorRené Schümann <white06tiger@gmail.com>2014-12-25 00:44:29 +0000
committerRené Schümann <white06tiger@gmail.com>2014-12-25 00:44:29 +0000
commit65db0e9570df2d309d247829083c3a1bda65ce27 (patch)
tree1e9fc5ab0f6d50b00bc3ece88bc195d8f9431435 /plugins/SendScreenshotPlus/src/Utils.h
parent93f880521f5466d116a500f5cc8a30fcb2b41857 (diff)
SendSS:
* CaptureMonitor() redone + now takes a crop parameter which allows us to capture any region of the screen (or a window) * CaptureScreen() renamed to CreateDIBFromDC() ! fixed problems with multi-monitor support. We didn't handle negative screen coordinates (monitors to the left) as reported in #699 comment 12: http://trac.miranda-ng.org/ticket/699#comment:12 - removed commented out CaptureDesktop() git-svn-id: http://svn.miranda-ng.org/main/trunk@11622 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/Utils.h')
-rw-r--r--plugins/SendScreenshotPlus/src/Utils.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/SendScreenshotPlus/src/Utils.h b/plugins/SendScreenshotPlus/src/Utils.h
index 2eab116f54..b2ee63d03e 100644
--- a/plugins/SendScreenshotPlus/src/Utils.h
+++ b/plugins/SendScreenshotPlus/src/Utils.h
@@ -50,10 +50,8 @@ size_t MonitorInfoEnum(MONITORINFOEX* & myMonitors, RECT & virtualScreen);
BOOL CALLBACK MonitorInfoEnumProc(HMONITOR hMonitor, HDC hdcMonitor, LPRECT lprcMonitor, LPARAM dwData);
FIBITMAP* CaptureWindow(HWND hCapture, BOOL bClientArea, BOOL bIndirectCapture);
-FIBITMAP* CaptureMonitor(TCHAR* szDevice);
-FIBITMAP* CaptureScreen(HDC hDC, SIZE size, HWND hCapture=0);
-//FIBITMAP* CaptureDesktop(); /*emulate print screen (not used)*/
-TCHAR* SaveImage(FREE_IMAGE_FORMAT fif, FIBITMAP* dib, TCHAR* pszFilename, TCHAR* pszExt, int flag=0);
+FIBITMAP* CaptureMonitor(const TCHAR* szDevice,const RECT* cropRect=NULL);
+TCHAR* SaveImage(FREE_IMAGE_FORMAT fif, FIBITMAP* dib, const TCHAR* pszFilename, const TCHAR* pszExt, int flag=0);
TCHAR* GetFileNameW(const TCHAR* pszPath);
TCHAR* GetFileExtW (const TCHAR* pszPath);