Commit graph

1017 commits

Author SHA1 Message Date
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
7573373a5d Moved check for OutputPrintInverted & the conversion from the PrintHelper to the PrinterDestination, this way it's all on one location.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2468 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-07 09:31:15 +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
190578953c Added a link to a Microsoft support link for Bug [#1420] in the exception, might still be good if we can change the bug for so it is more clear what can be done...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2465 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-06 13:15:13 +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
c6f3438a16 Fix for bug [#1457]
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2463 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-06 12:22:31 +00:00
RKrom
1b95405fa9 Added .NET 4.5 check and support, this changes nothing except that we know if 4.5 is installed... which might help with bug fixing.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2462 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-05 15:56:25 +00:00
RKrom
3cd141eb77 Added a sensibility property so the Freehand drawing can also be used with a pen. This is for the reported bug [#1454]
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2461 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-05 12:57:24 +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
41a98d45b7 Fixed build-version error
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2459 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-04 17:15:13 +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
f17142f6a1 Fixed not fitting text for "Create an 8-bit image if colors are less than 256 while having a > 8 bits image" and changed the readme.txt to have bug #1444 in it.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2453 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-01 16:52:46 +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
e30939093a Added aspect-ratio lock for Word, as "requested" in Bug #1443
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2450 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-31 16:48:13 +00:00
RKrom
da09193b99 This change fixes a problem that the icon cache isn't cleared and the .greenshot files don't get the Greenshot-Icon
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2449 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-25 13:57:18 +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
c9f87937f6 Fixed compile errors
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2447 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-25 12:35:45 +00:00
RKrom
508b0385ce This might fix the possibility to register the file type for the user, if he has the rights. Also change to display no error when something doesn't work.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2446 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-25 12:16:47 +00:00
RKrom
284df892d8 Changed to string format instead of using normal string concat.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2445 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-25 11:45:51 +00:00
RKrom
609075f8d1 Added the possibility to have a link to e.g. the original website when exporting to Outlook or Word.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2444 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-25 11:44:23 +00:00
RKrom
00a01236e0 Changed bug ID's and links for the SourceForge upgrade.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2443 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-24 10:51:55 +00:00
RKrom
fa091c0480 Added a fix for the cursor, it won't be on the surface if it's outside the captured range. This fixes the "issue" where the undo & delete buttons are active but nothing is visible.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2442 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-24 09:54:33 +00:00
RKrom
647d2a098c Added AnyCPU for debugging 64 bit code.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2441 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-24 09:50:22 +00:00
RKrom
0d5cbcb0be Changed build.bat to include the SVN number and the files are created accordingly. This makes releases easier, but needs some commits when changing from unstable to release candidate to release...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2440 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-24 09:21:31 +00:00
RKrom
dda4029c04 Added a log4net without System.Web reference so we have better Client-Profile support, also removed some code so it should be smaller.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2439 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-24 09:01:11 +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
RKrom
d964b3c7ec Setup improvement for regular users.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2437 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-21 10:01:53 +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
JKlingen
c0fbac4c53 Editor: Added horizontal and vertical alignment for text boxes.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2435 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-20 20:07:13 +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
6fadd33549 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@2432 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-18 10:26:14 +00:00
RKrom
2faa7baf6f readme.txt update
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2431 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-15 16:10:55 +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
9288fa8212 Added some rudimentary cache for the albums, very rudimentary... Greenshot needs a restart to recognize new albums.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2428 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-13 15:56:18 +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
e07278bc04 Fixed a possible DPI info loss
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2426 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-13 14:50:47 +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