Commit graph

19 commits

Author SHA1 Message Date
RKrom
aefa2eace3 Possible fix for some using Greenshot to "copy from clipboard" issues, needs to be tested though...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2561 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-04-11 15:31:01 +00:00
RKrom
4a1655eff2 Removed an unneeded clone, which I found while fixing a problem with copying images FROM an Outlook mail. The problem is that PNG is on the clipboard, but this image is cropped! Taking the Dib format solved the issue...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2476 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-02-11 16:33:52 +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
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
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
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
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
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
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
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
5541e2e1c7 Refactoring which replaces the Image in the ImageOutput for an ISurface, this makes it possible to save the Surface to any possible file format and even make it possible to pass some additional information in the OutputSettings. (Except reducing the colors, there are no other settings yet)
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2376 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-11 14:36:20 +00:00
RKrom
3e9b5b91c5 Tested the fixes for bug #3576125, this now should work... although there might be some cases where reading the clipboard doesn't work as supposed. I added a configuration setting, but didn't add it to the expert settings due to a lack of "space". (Did fix the spacing of the checkboxes though)
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2198 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-10-25 07:54:32 +00:00
RKrom
fbc0285c93 Added "special" DIB clipboard reader code, which is a test to fix bug #3576125. This is enabled over the ini property EnableSpecialDIBClipboardReader, disabled by default.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2195 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-10-23 11:08:11 +00:00
RKrom
eb07468219 Changed "Image.Save" to ImageOutput.SaveToStream, this fixes problems with the transparency and also reduces the size if the colors are <256
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2189 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-10-22 15:43:40 +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
9488200886 Refactoring some more classes, making easier code in plug-ins possible. Needed this for better testing some problems with the CreateShadow function.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2094 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-09-25 11:36:52 +00:00
Renamed from Greenshot/Helpers/ClipboardHelper.cs (Browse further)