Commit graph

29 commits

Author SHA1 Message Date
Robin
3b214133e4 BUG-2037: Added a small fix to improve the ini stability, also added some other small changes which were pending. 2016-09-29 18:10:32 +02:00
Robin
610f45d082 Code quality changes 2016-09-22 20:40:13 +02:00
Robin
1294036a56 Fixed copyright for this year. 2016-08-17 14:38:41 +02:00
Robin
0323705513 Merge remote-tracking branch 'remotes/origin/master' into release/1.2.9 2016-05-24 13:15:16 +02:00
Robin
5c04af1684 Undo of some cleanup which causes issues, 2016-04-26 23:13:37 +02:00
Robin
98e6be5eb6 Small cleanups [skip ci] 2016-04-17 23:32:22 +02:00
David Bremner
d780d337e4 marshal return types, add CharSet.Unicode to functions that lack it, marshal BOOL parameters 2016-04-16 18:45:02 -07:00
jklingen
e409392f32 Revert "Revert "Removed most references to SF"" 2016-03-24 23:04:47 +01:00
jklingen
2599ff5b7c Revert "Removed most references to SF" 2016-03-24 22:54:16 +01:00
Robin
fe176a2da4 Removed most references to Sourceforge, need to check with a file-searcher if something is left. P.S. The help files still have references... 2016-03-23 16:54:57 +01:00
Robin
ec5930ed41 Updated Copyright notice 2015-03-13 10:31:52 +01:00
RKrom
1ff27810db Added support of another clipboard format "CF_DIBV5" (aka Format17) to Greenshot, this will improve the result for "Open image from clipboard" and the drag&drop actions. Without Format17 these actions still work, but sometimes the transparency is lost as the other formats on the clipboard don't have this information. Greenshot can also write the new format, when enabled in the expert settings. Currently I haven't seen a reason to enable it yet, but due to the complexity of the clipboard and the amount of possible applications maybe an application does work better... 2014-11-06 12:10:16 +01:00
RKrom
6ddb16e0b1 Added reading of Format17/CF_DIBV5 from the clipboard, this is a format which supports transparency and with it Greenshot now processes more clipboard images correctly. Writing Format17/CF_DIBV5 to the clipboard is something that will be looked at. 2014-11-05 14:52:03 +01:00
RKrom
be36a3f42b Fixed some errors, removed obsolete code, removed some anonymous delegates and added some additional disposing code in the CaptureHelper.cs 2014-06-16 11:25:04 +02:00
RKrom
15253ef295 Code cleanup, removed a lot of FxCop messages and added some more disposing. 2014-06-15 11:53:38 +02:00
JKlingen
8c4eef8e2b Updated copyright notice for 2014 2014-01-08 21:30:56 +01:00
RKrom
203479ee4d Fixed Bitblt wrapper, the wrong parameters were used. (P.S. On Windows 8 the bitblt seems slower than a normal DrawImage)
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2494 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-17 09:49:42 +00:00
JKlingen
c777878bd7 updated copyright notice for 2013
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2436 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-20 20:18:49 +00:00
RKrom
201ee7082e Refactored code to use SafeHandle where possible, this should fix potential resource leaks and make the code more clear.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2429 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-14 13:45:41 +00:00
RKrom
502abed36a Added SafeHandles, see here: http://blogs.msdn.com/b/bclteam/archive/2005/03/15/396335.aspx to some of the Greenshot code. Not all possible handles have been converted, this should be done to prevent more possible memory/resource leaks.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2427 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-13 15:53:35 +00:00
RKrom
ce632b1496 Added changes for the zoom to animate relative to the cursor position. Also made the first changes to make sure the animation has a frame rate equal to the screen refresh.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2341 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-02 12:49:44 +00:00
RKrom
67db97b13f Refactored the zoomForm to a zoomControl, with this we can prevent mouse events to happen. Also the current state seems to work very well, even with a larger size.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2306 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-23 22:17:47 +00:00
RKrom
5a1c5fd0eb Fixed the zoom, it was drawn incorrectly. Also changed the drawing to work with a timer, so the updates are made even if the mouse moves to quick. Added a bitblt method in the GDI32 class.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2294 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-18 11:18:20 +00:00
RKrom
f63d4ca06e Changed logic of the DWM capture which tries to keep the window to capture on it's location, so less movement is visible. Also added a BoxBlur which might be a faster replacement of the CreateBlur (which is Gaussian), but the quality needs to be checked. For the BoxBlur the BitmapBuffer is extended with a few new tricks.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2245 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-06 15:59:19 +00:00
RKrom
197d46c9b9 Fixed a potential issue with GetWindowLong, using a wrapper which decides upon the IntPtr size which call needs to be made.
Fixed the corner cut to work with a CreateRoundRectRgn, but made if it cuts configurable so people can turn it off.
Added a CountColor method to ImageHelper.cs, which should be used to check if PrintWindow functions properly.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2236 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-05 14:18:13 +00:00
RKrom
fbc0285c93 Added "special" DIB clipboard reader code, which is a test to fix bug #3576125. This is enabled over the ini property EnableSpecialDIBClipboardReader, disabled by default.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2195 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-10-23 11:08:11 +00:00
RKrom
63f71138cf Added a color picker, a modified Patch #3487158. Still needs some additional checks, if all resources are correctly freed etc.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1654 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-13 11:29:10 +00:00
RKrom
0f65452e6c Fixed Copyright to 2012
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1653 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-13 09:06:09 +00:00
RKrom
8d458998a1 Moving back to trunk!
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1602 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-01-24 19:24:36 +00:00
Renamed from Greenshot/UnmanagedHelpers/GDI32.cs (Browse further)