RKrom
2f20c0820c
Trying to solve the problem that effects don't change the elements, except for the offset, by using a Matrix and than later transforming the elements. This is just the start of an idea, if this leads to nothing we can "git revert" the commit(s)...
2014-05-30 16:44:27 +02:00
RKrom
b37ed3562d
Added icons for the new tools, also changed some of the logic so it is possible to show the number of the next "label" in the tool button.
2014-05-28 09:35:08 +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
RKrom
63ecb20f9e
Fix for losing EXIF and other information, eventually causing the image to be incorrectly rotated.
2014-02-07 10:23:17 +01: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
8943549eaf
Added Blur-delegate, this makes it possible to supply a quicker implementation of a blur from a plug-in... kinda hackish...
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2537 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-03-27 16:49:40 +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
b7b89ade04
cleanup & small fixes. Added some more IBinaryContainer implementations which are used by plugins which aren't rolled out yet. (but I didn't want to loose the code)
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2524 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-03-07 10:08:57 +00:00
RKrom
3361873fe7
Cleanup of ColorMatrix & ImageAttribute code usage
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2514 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-03-05 12:07:48 +00:00
RKrom
8b5578ea2c
Fixed compilation issues on new code which isn't checked in by refactoring the ApplyBlur method. This was needed anyway, as it doesn't return a new bitmap!
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2513 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-03-01 09:19:01 +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
2d6b58f722
Small fix for compositing mode and a log statement.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2511 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-27 17:22:43 +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
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
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