RKrom
e2be04a552
Code cleanup: 1) AbstractFilter: why did we serialize the bitmapbuffer? 2) Bitmapbuffer: removed serialization code, this object should NEVER be serialized as it's just a view which makes access faster. 3) QuantizerHelper.cs: Refactored to use the FastBitmap
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2474 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-10 14:40:01 +00:00
RKrom
f34923e0d7
Added the FastBitmap.cs, this should replace the BitmapBuffer sometime. The advantage of using this, it has fast implementations for accessing certain PixelFormats directly and doesn't need to generalize the code which would make it slower.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2473 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-10 14:16:57 +00:00
RKrom
764cba9af7
Added better 8 bit support, although the caller needs to call the right method... Maybe I can use indirect functions to speed this up? Changed the Quantizer to reflect the changes.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2472 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-10 07:58:22 +00:00
RKrom
f0b1f1f84d
Added ReduceColorEffect (using the WuQuantizer in the effect). Changed the way the ApplyEffect works, an effect might decide to do nothing and return null.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2471 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-08 16:01:19 +00:00
RKrom
8f36064131
Forgot gamma...
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2470 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-07 13:23:32 +00:00
RKrom
a2fb7bf322
Added "Adjust" to the ImageHelper, this can change the brightness, contrast and gamma.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2469 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-07 13:19:01 +00:00
RKrom
360c4d45c7
Added monochrome effect and placeholders in the PrinterDestination, so Jens can fill in the blanks... :)
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2467 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-07 09:10:20 +00:00
JKlingen
b692674f38
added CreateMonochrome(Image), which creates a black/white version of the image (not accessible via UI yet, needs some more testing)
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2466 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-06 22:11:21 +00:00
RKrom
351e4f96d4
Hopefully this should fix bug [ #1440 ], as we don't have real data and we can't reproduce this it's a bit of a shot in the dark. But I am sure that how it was before is not correct...
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2464 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-06 12:48:54 +00:00
RKrom
f605be6dc3
Fixed overflow exception (noticed this while using it)
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2460 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-05 08:24:41 +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
7ba6a57b4a
Fixed issue where a bitmap was not disposed, causing a memory leak if there were more than 256 colors on the image and it was not forcefully quantized.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2455 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-01 20:35:05 +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
RKrom
cdcd051153
Just a small change to make sure the palette doesn't have "garbage" at the unused entries.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2452 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-01 16:21:51 +00:00
RKrom
2730ac5540
Fix for bug 1444, the WuQuantizer doesn't work if the colors are already less than 256 so we just create a 8bpp image from the source.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2451 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-01 16:18:48 +00:00
RKrom
d3b792bb3e
Fixed log file not being created.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2448 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-25 13:10:35 +00:00
RKrom
2ce20fee08
Cleanup of some animation code
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2438 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-24 08:22:37 +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
771fc93d6b
Checked ClickActions, added the Settings as possible value. Also made sure we log more information if the INI has wrong values.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2434 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-18 11:05:11 +00:00
RKrom
f20ced15a7
Added the possibility to configure the single & double-click action of the NotifyIcon.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2433 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-18 10:41:54 +00:00
RKrom
f7c73932f2
Fixed Context-Menu issues with the sub-menu arriving on the second screen, this is only a work-around (cutting the string to max 25 characters). Also added an icon for the "capture IE from list", as this might have different applications available.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2430 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-15 15:56:16 +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
b17c3871a5
Fixed a possible DPI info loss
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2425 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-13 14:49:58 +00:00
RKrom
97a853d450
Fix for bug #3600171 , using a default VRefresh if the returned value is 0 or 1.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2422 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-10 07:25:44 +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
6ec8ecfaa1
Changes to clipboard code: log statement changes and consolidated some code.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2414 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-07 19:57:53 +00:00
RKrom
12c9e943b2
Fixed open last capture location, the configuration wasn't updated when saving an image.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2413 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-07 17:07:22 +00:00
RKrom
42011d2588
Fixed the bug reported here: https://sourceforge.net/projects/greenshot/forums/forum/676082/topic/6510105/index/page/1
...
The resizing didn't work, after the resizing was fixed the OCR didn't work and I had to change to resize the canvas... now it seems to be working again.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2410 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-05 23:55:36 +00:00
RKrom
c352c4061b
Fixed bug #3597535 by making sure the IniChanged event isn't hooked before the editor is loaded. Also added a log statement in the ini loading code, and added a better try catch.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2409 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-05 23:14:54 +00:00
RKrom
5a93c10c79
Fixed some clipboard issues, with these fixes more formats are supported and this makes Greenshot better usable.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2407 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-05 22:45:47 +00:00
RKrom
09400ccdbe
Refactoring to prevent that the image for the clipboard is created multiple times. Code could most likely be cleaner and simpler but for now it should be okay.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2401 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-29 15:20:26 +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
f627ce5dd0
Changed code for the Clipboard and changed a lot of "Bitmap" code to work on images, this might give problems but if these are solved we have better support for MetaFiles. This made it possible to remove the MetafileContainer, which is replaced by the ImageContainer (which is the BitmapContainer modified). The clipboard code now knows more ways to load images from the clipboard!
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2398 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-20 12:33:17 +00:00
RKrom
b7a604d93b
Code consolidation, trying to get all IDataObject relevant code into the ClipboardHelper. This might solve some Drag & Drop or Copy/Paste issues.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2397 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-20 10:11:53 +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
16a8122751
Added comment
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2394 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-19 08:10:24 +00:00
RKrom
8aeb07e1e9
Added a check, preventing additional disposing.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2392 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-18 14:41:59 +00:00
RKrom
94b6f9d115
Fixed error handling in the ClipboardHelper.GetImage
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2389 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-17 13:04:10 +00:00
RKrom
cd3c8aeb0b
Fixed bug #3594681 , do not use 256-color reducing when using inline dataurl for HTML.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2388 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-17 11:22:29 +00:00
RKrom
a57fa7086f
Disabled compiling of unused code for the 1.1 release
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2387 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-17 11:03:23 +00:00
JKlingen
40956b195c
fixed IsInDesignMode to work with sharpdevelop, too
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2384 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-15 13:50:13 +00:00
RKrom
e7ab5f5677
Moved unused effect from Surface internal to IEffect implementation
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2383 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-12 16:43:16 +00:00
RKrom
38de4875e0
Added settings forms for DropShadowEffect & TornEdgeEffect
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2380 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-12 12:13:33 +00:00
RKrom
bd58845c68
Added forgotten files... and optimized the ImageOutput to skip some checks when using the .greenshot format.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2378 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-12 09:57:40 +00:00