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
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
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
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
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
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
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
9de30e41d5
Changed naming to make the code more understandable.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2402 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-30 13:05:05 +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
4be6799f4a
Fixed some drawing defaults for Bug #3588716
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2391 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-17 16:20:45 +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
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
f5e9618cd2
Turned on the code for the Greenshot file format, hat to refactor the ImageOutput to accept an ISurface so we could wait to export it to an image until the last moment or save the surace-image & serialize the elements.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2373 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-10 17:50:26 +00:00
RKrom
83d244c3bf
Counting the amount of surface objects, so we can see if there are multiple in memory when we have bugs.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2365 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-07 15:12:04 +00:00
RKrom
d7af595d0d
Added info to track bugs like #3592758 better, we should use this more often.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2362 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-07 10:57:48 +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
2a26be0a37
Fixed file handling, fixed wrong order in the title of the editor, changed left-click handling of the context menu. Added a boolean in the ProcessCmdKey of the surface.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2327 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-28 18:59:01 +00:00
RKrom
46e9ea0e59
Mainly code cleanup, added a lot of comments. Also making sure the element which was selected while being removed is re-selected again when undo is used. Not really happy with the solution as the the container should handle this somehow itself without work-around, for now it should be enough.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2311 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-25 08:48:10 +00:00
RKrom
3d62f9c279
This fixes a bug where the AutoCrop can't be undone, there is still a bug where a redo of a crop (auto or normal) doesn't update the bindings.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2310 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-24 10:29:39 +00:00
RKrom
009d5d11df
Fixed PixelOffset issue for the RectangleContainer, need to check what to do with the other containers.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2304 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-23 16:07:21 +00:00
RKrom
a075a81daf
Fixed a case with Drag & Drop of images where the transparency is gone. Also fixed the editor "Center" patch, this was only working when width & height were smaller.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2283 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-13 17:11:00 +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
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
7bb187ce71
Removed the PictureBox from the Surface, meaning that the Surface is now just a Control, this should simplify the event stack and other logic and give us more control.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2099 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-09-26 12:51:01 +00:00
RKrom
68c0cf091a
Fixed shadow usage of the BitmapContainer (toggle shadow DOES reset the size)
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2098 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-09-26 11:55:55 +00:00
RKrom
e3dac6b438
Refactoring of Surface.cs, mostly cosmetic! Removed public properties by creating get/set and made most fields NonSerializable so they won't be serialized when writing the surface.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2097 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-09-26 10:20:00 +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
e654c38eb8
Some fixes which should reduce memory usage a bit, also preventing possible memory leaks.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2005 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-09-06 09:22:57 +00:00
RKrom
d8374df331
Added some Greenshot 1.1 code, is currently unused.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2000 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-08-21 12:15:21 +00:00
RKrom
93bb5d992f
Fix for Bug #3535466 , well somewhat... removing the rotating of the elements which prevents a lot of other issues.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1924 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-06-18 18:47:48 +00:00
RKrom
c468cf1e0a
Fixed bug #3526616 , modifying a collection while iterating over it.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1849 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-05-14 16:28:50 +00:00
RKrom
71f44023c2
Changed EditorForm to use language binding... long live search & replace...
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1834 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-05-04 13:01:04 +00:00
RKrom
7d97758d3e
Forcing bitmaps to be 24-bit when using torn-edges or shadow, was already 32-bit without alpha...
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1828 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-05-03 10:08:22 +00:00
RKrom
cfb370a697
Fixed editor "DrawableContainer" context-menu translations.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1827 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-05-03 08:34:54 +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
9bf5e44c94
Added some support for opening the url when an upload is made from a Destination (currently Jira & Picasa) and the tooltip is clicked.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1797 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-04-18 13:42:42 +00:00
RKrom
53af559d22
Preparations for the language changes
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1783 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-04-17 14:16:10 +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
1beb0656f4
Found a scroll problem in the CropContainer, this might be similar...
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1757 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-04-05 11:52:04 +00:00
RKrom
5b94650e81
Fixed issue that when the CropContainer drawn and the surface is bigger than the window some part on the bottom is not drawn correctly.
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1756 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-04-05 11:38:41 +00:00
RKrom
a506c15d18
Removed Freehand rotate, didn't get it working and changed the resx files from Version 4 to 2 as this causes problems in Visual C# Express 2010
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1743 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-04-02 17:09:45 +00:00
TBraun
ee950872e9
Toolbar items for effects and rotation
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1740 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-04-02 16:55:59 +00:00
JKlingen
b881ca0b94
image editor: fixed move-by-10-px using shift+arrow keys
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1722 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-03-25 21:12:07 +00:00
RKrom
5f9deb2f06
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@1690 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-03-06 17:45:50 +00:00
RKrom
0bb7f87ee5
Fixed rotate, also working on the BitmapContainer
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1680 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-03-05 16:01:46 +00:00
RKrom
25f8d81d5a
Fixed rotation formula
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1679 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-03-05 07:20:02 +00:00
RKrom
aeb7e5d78e
Added initial code for rotating
...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1676 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-27 06:29:32 +00:00