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
RKrom
2692c0ab43
Fix for DWM Capture where the window moves, this sometimes leaves a blur-effect on the capture.
2014-02-05 09:57:43 +01:00
JKlingen
8c4eef8e2b
Updated copyright notice for 2014
2014-01-08 21:30:56 +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
5018f67ff7
Optimizing: Replaced BitmapBuffer with FastBitmap, also changed some filters to use more GDI "hardware" instead of home-made pixel processing. Only on Windows 8 the blur is "slow", when radius < 20.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2531 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-03-11 16:44:34 +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
RKrom
0dc3e6b960
Excluding some Windows 8 code for non Windows 8 systems.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2458 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-04 17:05:37 +00:00
RKrom
8b0253bdf9
Fixed a visibility check on Apps and added the gutter! The "Snapped Desktop" is still missing and if this is visible it won't go away...
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2457 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-03 18:12:39 +00:00
RKrom
141da5e724
Windows 8: fix for capturing when a fullscreen app is visible, this didn't go away, when having multiple monitors.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2456 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-03 16:26:04 +00:00
RKrom
5a1c8ffefb
Removed Firefox preview window from the capture list
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2454 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-01 17:06:32 +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
a12b7e3a38
Cleanup
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2421 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-08 11:36:07 +00:00
RKrom
a99a5d1ffd
Prefer small icons, so we don't have to resize them.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2420 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-08 11:27:20 +00:00
RKrom
8a3fd911bf
Fixed a NullReference and changed the way we read the icon for the windows in the List.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2419 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-08 11:13:18 +00:00
RKrom
5ce65ab191
Fixed a problem with loading the icon from a share, also preventing a NullPointerReference in the MainForm
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2418 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-08 10:20:31 +00:00
RKrom
efda1e3025
Fixed WindowLong issue, the MSDN documentation doesn't work for .NET
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2400 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-20 14:17:27 +00:00
RKrom
635ee507f8
Cleanup of User32 Code, added setter for the ExtendedWindowStyle and changed the WindowPlacement to use get/set
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2396 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-20 08:48:01 +00:00
RKrom
82eddefe4e
Code cleanup, already made some changes (which are not active) for the next release so I can work on them without having multiple changed files which might cause check in conflicts.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2359 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-06 13:47:17 +00:00
RKrom
502fe44270
Don't instantiate the IAppVisibility if < Windows 8, so there is one exception less in the logs.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2307 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-23 23:19:20 +00:00
RKrom
28a965db09
Fixed logic from previous fix, the Toolwindow detection was flawed.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2301 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-21 10:29:41 +00:00
RKrom
57ebc0c675
Fixed Window corner cut to skip tool windows, and use a cut shape from the configuration.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2300 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-21 10:00:55 +00:00
RKrom
831a3b4d5b
Made zoom move to a different location if it goes outside the screen. Also changed the Metro-App visibility property, this might work (up to an acceptable level) but is untested.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2284 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-13 21:13:09 +00:00
RKrom
e84b6c8dd4
No need to consider the working area, as the Window is topmost and is visible "over" the Taskbar
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2271 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-12 16:52:44 +00:00
RKrom
f006718d2a
Some fixes for capturing those nasty Apps, code is not finished yet!
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2267 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-11 19:57:55 +00:00
RKrom
3835b198f0
Fixed "does the window to capture" fit routine and changed the isMetroApp to check for the className.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2251 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-08 11:44:47 +00:00
RKrom
180cc1c661
Fixed DWM capture for Metro (Modern UI) Apps by not placing it in the foreground.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2248 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-08 07:03:53 +00:00
RKrom
ae8c007528
Added some very basic support for Metro (Modern UI) Apps, the ones running can be captured over the "Capture window from list" and the one visible will be selectable with the interactive capture. (PrintScreen and space). What doesn't work is using printscreen on the Metro Tiles screen, here the space will only work like the desktop is visible.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2247 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-08 07:00:29 +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
15d5bb58e4
Fixes: Catching an outlook exception that can be ignored. Making sure that the window to be captured is active, so the colors are right. Also a little cleanup, and added FindWindow to the User32.cs so we can use this to find Metro (Modern UI) applications, this still needs to be added to the WindowsHelper.cs
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2244 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-06 06:11:37 +00:00
RKrom
93d9a8cd0c
Fixed DWM capture to work by cutting the corners only if Windows Vista / Windows 7. This change allowed to have the redmask capture to be removed, only need to freeze processes if a transparent capture is taken. This should speedup the capture and use less memory.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2242 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-05 19:07:39 +00:00
RKrom
35b16e8fd9
Removed unneeded scroll code. Fixed a potential null-pointer bug in CaptureRectangle. Fixed a bug with GDI captures being black by counting the pixels and if there is a difference taking the screen shot instead.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2238 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-05 16:05:07 +00:00
RKrom
fd46837c8d
Fixed last change to also check for Maximised, corners don't need to be removed from maximised windows.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2237 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-05 14:59:47 +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
0fd12ae5fc
Trying a different way of cutting the edges
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2235 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-04 20:37:39 +00:00
RKrom
4a3161a281
Fixed some capture issues, when trying to capture or show thumbnails of Windows that are iconized the size calculations are wrong.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2206 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-10-26 18:07:55 +00:00
RKrom
4d41fc0a43
Fix for bug #3579138 , minimized windows can't be captured via the context menu.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2205 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-10-26 15:27:48 +00:00
RKrom
4de75cdb69
Cleanup of using statements
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2149 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-10-17 12:21:12 +00:00
RKrom
568264a045
Small code optimization in GetActiveWindow, and bugfix in an unused method GetWindow (used for testing)
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2122 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-10-05 10:24:35 +00:00
RKrom
f447fb8b72
Some oAuth fixes for Imgur & Photobucket. Still having problems with Photobucket...
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2026 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-09-12 12:43:02 +00:00
RKrom
cac99fbaf3
Refactored code location of the isGDIAllowed/isDWMAllowed, also changed the timeout for getting the HTML object from a window to 5 Seconds (instead of 1).
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1877 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-05-18 07:36:18 +00:00
RKrom
e5cf074386
Extended the running instance MessageBox with the paths of the instances. Made to get a better fix for #3526579
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1847 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-05-14 15:44:08 +00:00
RKrom
6905a353c1
Implemented some TODO's, fixed freezing the wrong processes, fixed retrieval of window icon for some windows and cleaned some code.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1831 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-05-04 09:58:18 +00:00
RKrom
c559fc3447
Fixed (hopefully) resource issues when changing something in the Designer
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1734 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-04-01 10:56:25 +00:00
RKrom
4b3f7ba0a5
Refactored the ini code to be more "OO", making it possible to reset a value which was needed to implement an auto-repair for certain settings. This was intiated by Bug #3509754 , which hat the reason that somehow the Hotkey name was corrupt.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1721 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-03-22 12:00:07 +00:00
RKrom
0aa8e43478
Refactoring the interop code to a separate project. Still need to add the interop DLL to the final exe... or maybe I want to use references inside the projects...
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1689 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-03-06 17:43:23 +00:00
RKrom
096c33656c
Fixed Transparency issues: always using transparent when the captured image is transparent, if not use the DWMBackgroundColor. (and fixed a compile error due to forgotten commit)
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1671 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-20 16:40:00 +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