JKlingen
b537ae7e14
added monochrome print option
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2491 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-17 07:58:58 +00:00
RKrom
3f4d93f2b6
Fixed an issue with the FastBitmap, renamed methods in the BitmapBuffer to be equal to the FastBitmap implementation. In general it's now very easy to switch from the BitmapBuffer to the FastBitmap implementation, but one should consider that the BitmapBuffer checks the x,y if they are inside... and supports a "apply rectangle". Had to "refactor" the CreateBlur for this. Changed the CreateShadow to work with the BoxBlur, this changes the time to create a shadow of a 1280x1024 from ~2.6 to ~1.2 seconds on my PC... which is still slow. The resulting effect seems to be extremely similar... good enough for me.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2480 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-12 16:36:09 +00:00
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
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
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
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
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
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
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
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
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
0c7e16a771
Applied my "patch" which refactors the complete codebase to have IEffect support, this is an interface which can be used to supply effects to a bitmap. These effects can now be passed to the OutputSettings (which now is called SurfaceOutputSettings) to control how the output is modified. This is very useful for e.g. OCR which needs a grayscale & resized image.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2377 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-12 09:51:41 +00:00
RKrom
e148f2103c
Added key handling for the effects and added a clear operation. Also some code cleanup.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2360 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-06 17:06:26 +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
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
5714b59a14
Fixed hard coded Encoder, if sometime the encoder order changes this would have broken the code. Also removed a stream wrapper.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2130 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-10-09 10:01:37 +00:00
RKrom
f9abcac063
Fixed some interface usage, also cleanup of the surface & editor code. This should theoretically allow usage of home made IDrawableContainer objects, which plug-ins supply.
...
Also made it possible to reuse the editor, currently only available editors which have a non modified surface can be reused. And only than if the configuration is set to do so.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2100 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-09-26 16:57:16 +00:00
RKrom
d8cb00e70c
Fixed shadow with transparency issue.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2095 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-09-25 12:19:22 +00:00
RKrom
e687450dfc
Added multi-screen capture support! As a default the current screen under the cursor is captured. (ScreenCaptureMode.Auto)
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1806 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-04-19 11:10:57 +00:00
RKrom
04eccba51a
Fixed torn edge, used wrong CreateEmpty...
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1802 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-04-19 07:42:14 +00:00
RKrom
2b8b3c7a62
Fixed excessive Inifile writing! Added a simple resize method wrapper for Thumbnails.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1770 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-04-11 10:17:05 +00:00
RKrom
afc9c37ce5
More fixes for the resize code.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1763 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-04-08 19:11:55 +00:00
RKrom
72d3de218b
Added a background color for some of the ImageHelper methods, this makes it more flexible.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1762 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-04-08 18:35:27 +00:00
RKrom
18e0d88b0c
Added a few helper methods to resize bitmaps.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1761 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-04-08 18:19:09 +00:00
RKrom
4a5e04ae23
Performance improvements for the Wu quantizer.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1717 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-03-21 11:44:13 +00:00
RKrom
519e5b8ab2
Fixed color count, the initially supplied code was only returning the amount of colors that was inputted which == width*height
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1713 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-03-20 16:55:12 +00:00
RKrom
b464480bf6
Modified the Quantizer to Xiaolin Wu's, updated the BitmapBuffer to support 8BPP but you still need to know what to call.... (needs some additional refactoring)
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1712 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-03-20 15:53:50 +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
70103d745f
Added initial code for rotating
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1675 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-27 06:28:43 +00:00
RKrom
150ea9c4eb
Fixed a problem with writing transparent bitmaps to non transparent image formats. Cleaned up some code, implemented the start of a donate page in the installer (also tweaked the size a bit)
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1673 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-21 13:30:43 +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
be0569bb21
Improved differentiating office icons, the actual application has a different icon as the "document". For Outlook this is even different for the email & meeting.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1666 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-20 12:13:59 +00:00
RKrom
fe9e5e6c35
Fixed resolution regression bug, again I forgot to copy the horizontal & vertical resolution of the original image...
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1664 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-17 16:56:46 +00:00
RKrom
5038d7d237
Translations for the effects
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1660 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-14 14:48:24 +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
594f8f9a0a
Small change to allow window capture and automatically add a shadow, only inside the editor.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1652 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-10 16:57:25 +00:00
RKrom
7591fa993b
Optimizations
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1650 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-10 15:34:40 +00:00
RKrom
dede5cf292
Fixed and optimized some drawing routines, still didn't find a solution for shadowing when target format has transparency.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1648 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-10 11:55:21 +00:00
RKrom
46758d238c
Changes for Thomas & fixed undo/redo for background changes
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1647 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-09 15:30:27 +00:00
RKrom
8374aa5fb6
Small fixes in GraphicsPath usage, making sure they are disposed. Also making sure Anti-Aliasing is used when drawing the shadow.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1644 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-09 08:52:58 +00:00
RKrom
dbc77613f2
Simplified edge code and improved the quality too!
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1641 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-08 13:12:55 +00:00
RKrom
ab7522d743
Fixing some bitmap code to work, this should improve the quality a bit. Also re-factored some code so I could add more professionally shadows.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1639 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-08 12:04:35 +00:00
RKrom
a52e83dc45
Added an edge effect to see how and where we place them.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1638 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-07 16:28:28 +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