From 65db0e9570df2d309d247829083c3a1bda65ce27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Sch=C3=BCmann?= Date: Thu, 25 Dec 2014 00:44:29 +0000 Subject: 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 --- plugins/SendScreenshotPlus/src/Utils.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/SendScreenshotPlus/src/Utils.h') 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); -- cgit v1.2.3