Commit graph

76 commits

Author SHA1 Message Date
Robin
a5cabb2ced BUG-2093: Fixed check if the Windows GDI blur can be used. 2017-01-13 20:54:16 +01:00
Robin
eabe6a18be FEATURE-992: Fixing a problem with the editor not becoming the foreground window. [skip ci] 2016-12-26 21:00:15 +01:00
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
6efc7796b8 BUG-1908: Made Greenshot recheck & add the external commands like Ms-Paint and Paint.NET if they are not deleted manually and not yet available. Also cleaned up some code. 2016-09-16 21:48:57 +02:00
Robin
d446127e19 Optimizing the windows logic, as far as was possible without LINQ. Added a check to try to fix BUG-2017. 2016-09-04 16:42:02 +02:00
Robin
1d0bdf23c1 FEATURE-731: Backport of the title detection code 2016-09-03 23:32:24 +02:00
Robin
1294036a56 Fixed copyright for this year. 2016-08-17 14:38:41 +02:00
Robin
798ca503a5 Code quality changes [skip ci] 2016-08-16 10:37:55 +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
1469f1fa41 BUG-1965: Fixed a bug where a 1 pixel wide border around an active window is visible. Probably due to the "shadow" being captured too. 2016-05-22 00:16:06 +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
4f9d6eb865 Updated csproj files, so we don't have to migrate every time. Added a fix for BUG-1863: Cannot get access to deleted object, and added some small code quality chances. [skip ci] 2015-11-06 09:31:22 +01:00
Robin
ec5930ed41 Updated Copyright notice 2015-03-13 10:31:52 +01:00
RKrom
95df5a7565 Added some code to make a desktop switch possible. 2014-12-16 07:28:32 +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
193eb7d6d9 Fix overflow exception [skip ci] 2014-11-04 21:58:40 +01:00
RKrom
eefdf2b2eb Tried to use Greenshot from Wine, and found that the user32.dll GetPhysicalCursorPos entry point is not supported, although I don't know if this is just the tip of the iceberg I though I would see what happens if we just ignore that call if an exception occurs. [skip ci] 2014-11-04 11:28:19 +01:00
RKrom
ffee345993 Added AppVeyor build state, and a link in a comment [skip ci] 2014-10-29 17:18:13 +01:00
RKrom
ec302c6003 Trying to fix an instability with the icon retrieval, unfortunately this problem on occurs when Greenshot is running outside Visual Studio. 2014-10-29 16:36:01 +01:00
RKrom
b10735f574 Fix structure definition, MAX_PATH is 260 and not 256 2014-10-29 15:25:17 +01:00
RKrom
7d28b6a3a5 Enhanced the external command plug-in to capture the first Uri in the output, and places this on the clipboard. Additionally the Uri is linked in the notify bubble or when started from the editor. The behaviour can only be modified via the greenshot.ini and is for all commands. 2014-09-09 17:35:51 +02:00
RKrom
aad04bc9d7 Fixes for CharSet marshaling, this caused problems with the IE Capturing. 2014-06-20 17:30:55 +02:00
RKrom
9aefc90460 Usage of EmptyWorkingSet now via the configuration, so we don't use it for all people. 2014-06-16 23:32:30 +02: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
RKrom
08216b09c0 Code quality changes for stability and reduced memory usage. 2014-06-13 12:18:59 +02:00
RKrom
77a92d98c3 Code quality changes, and added the possibility to set the amount of colors for the Quantizer. 2014-05-11 16:31:04 +02:00
JKlingen
8c4eef8e2b Updated copyright notice for 2014 2014-01-08 21:30:56 +01:00
RKrom
a03bc31aef Creating a branch 1.1 where I will try to make the 1.1.7 build available, this means I need to merge some changes from 2.0 to here. 2013-12-04 17:46:02 +01:00
RKrom
c8b1481a18 Fixed a interop call signature error, which might cause issues on 64 bit. (these have not be seen!)
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2552 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-04-04 12:49:34 +00:00
RKrom
d039af3640 Did a compare on the shadow code, with and without GDI. Wasn't happy with the difference, so I made sure they are equal (as far as I can see).
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2512 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-03-01 08:49:30 +00:00
RKrom
ec5840550a Cleanup, and fixed a bug in the CloneArea method of the ImageHelper.cs
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2506 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-22 16:27:55 +00:00
RKrom
b3ea27ef6e Fixed compile error, forgot parameter
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2497 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-17 10:51:11 +00:00
RKrom
0989012a37 Did some performance improvements for the CreateShadow, without using our Gaussian (is still available) this saves a temporarily additional bitmap copy. On Vista/Windows 7 GDI+ is used, on other systems a fall-back with BoxBlur is used.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2496 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-17 10:00:40 +00:00
RKrom
9d1b0e5dc4 Added DrawWithBlur to the GDIplus. P.S. all blur logic seems to be broken on Windows 8 when having a radius < 20
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2495 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-17 09:51:59 +00: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
RKrom
9f86db6828 Improved "speed" of the ApplyBlur by using "static final readonly" for the FieldInfo to get the private field and improved stability by using finally to cleanup. (as it should be)
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2490 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-15 13:35:15 +00:00
RKrom
0408c755d6 Added GDIplus.cs, this contains a GDI+ wrapper. Currently there is the ApplyBlur which applies a Gaussian blur effect on the specified rectangle of the passed bitmap.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2489 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-15 12:34:28 +00:00
RKrom
5ffe3dfb42 Cleanup for code-analyses 2nd phase
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2483 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-13 11:45:51 +00:00
RKrom
a394904aa3 First code analysis changes, this "should" make Greenshot more stable and implement things as is supposed.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2481 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-12 18:43:56 +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