Popular Post MJW Posted May 17, 2017 Popular Post Posted May 17, 2017 Paste From Clipboard copies the clipboard image into the current selection, or into the entire canvas if there is no selection. It's in the Selection submenu. It has quite a few options for pasting the clipboard image, including blending with the image in the canvas. The plugin (version 2.0.1): PasteFromClipboard_2.0.1.zip The UI: The Help Menu description: ------------------------------------------------------ Paste From Clipboard copies the clipboard image into the current selection, or into the entire canvas if there is no selection. The controls are:Tiling: Specifies how pixels outside the clipboard boundaries are treated. Pixels outside the image range of the clipboard can be transparent, Clamped, Tiled, Alternately Tiled, or Brick Tiled. When Alternately Tiled is selected, the tile orientation is reversed for every other tile, so that the tiles match at the edges. The edge pixels are not repeated. When Brick Tiled is selected, every other row is offset by half the image width. The rows do not wrap from the top to the bottom. Size: Increases or decreases the size of the clipboard image. XY Proportion: Changes the XY proportion of the clipboard image. Moving the control right increases the X size while decreasing the Y size. Moving the control left decreases the X size while increasing the Y size.Offset: Moves the clipboard image relative to the selection or the canvas.Rotation: Rotates the clipboard image counterclockwise by the specified number of degrees. Flip Horizontal: Flips the clipboard image horizontally. (The image can be flipped vertically by flipping horizontally and rotating 180°.) Canvas Transparency Preservation: Specifies the method used to preserve the transparency of the canvas pixels. The choices are None, Clamp Alpha to Canvas Alpha, and Multiply Alpha by Canvas Alpha. Blend with Canvas Image: When enabled, the clipboard image will be blended with the image in the canvas instead of replacing it. Blending Mode: Specifies the blending mode used to combine the clipboard and canvas images. Clipboard Opacity: Modifies the clipboard image opacity. This value is combined with the opacity of the clipboard pixels. Offset Relative to Canvas: When enabled, the Offset is relative to the entire canvas instead of the selection.Antialias: Specifies that antialiasing should be used.Antialias Quality: Specifies the number of samples in each direction per pixel. ------------------------------------------------------ EDIT 1: Version 1.1.*. -- Modified antialiasing so that only clipboard is subsampled, not canvas. This avoids blurring of canvas image when antialiasing is enabled. EDIT 2 (5/21/2017): Version 1.2.* -- Disabled Antialias Quality control when antialiasing is disabled. EDIT 3: (6/11/2018): Version 1.3.0 -- Fix tiling to eliminate cracks in some modes. EDIT 4: (10/2/2020): Version 2.0.0 -- Add "Flip Horizontal" and "Canvas Transparency Preservation" controls. EDIT 5: (10/10/2020): Version 2.0.1 -- Fix centering. 2 1 9 Quote
lynxster4 Posted May 19, 2017 Posted May 19, 2017 (edited) Thank you for this, @MJW! I can see many uses for this plugin. Edited July 27, 2017 by lynxster4 re-hosted image 1 1 Quote My Art Gallery | My Shape Packs | ShapeMaker Mini Tut | Air Bubble Stained Glass Chrome Text with Reflections | Porcelain Text w/ Variegated Coloring | Realistic Knit PatternOpalescent Stained Glass | Frosted Snowman Cookie | Leather Texture | Plastic Text | Silk Embroidery Visit my Personal Website "Never, ever lose your sense of humor - you'll live longer"
Woodsy Posted May 19, 2017 Posted May 19, 2017 I agree MJW, thank you! It's quite useful. You'll see the results on my next picture. Quote My PDN Gallery
Seerose Posted May 21, 2017 Posted May 21, 2017 (edited) @MJW! Thanks for the beautiful plugin! It is awesome. Thank you so much for your effort. Edited June 3, 2018 by Seerose 1 1 Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi
MJW Posted May 22, 2017 Author Posted May 22, 2017 Thanks lynxster4, Woodsy, and Seerose for your nice comments, and thanks to those who gave me reps! I just made a very minor change to the plugin. It may not be worth doing a download for. I decided to disable the Anitialias Quality control when antialiasing is disabled, to be consistent with my other recent antialiased plugins. I meant to do that originally, but forgot. The version number is 1.2.*. 1 Quote
Seerose Posted May 22, 2017 Posted May 22, 2017 (edited) @MJW! I want to say this is really beautiful. Thank you for the new version. Edited April 19, 2018 by Seerose 1 Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi
AndrewDavid Posted July 13, 2017 Posted July 13, 2017 The first plugin I have found that crashes in the new build @MJW paint.net 4.0.17 beta build 6403 File: C:\Program Files\paint.net\Effects\PasteFromClipboard.dll Name: PasteFromClipboardEffect.PasteFromClipboardPlugin Version: 1.2.6350.39917 Author: Copyright © MJW Copyright: Paste the image in the clipboard into the selection. Website: https://forums.getpaint.net/index.php?/topic/111349-paste-from-clipboard/ Full error message: System.MissingMethodException: Method not found: 'System.Collections.Generic.IList`1<!!1> PaintDotNet.Collections.ListExtensions.Select(System.Collections.Generic.IList`1<!!0>, System.Func`2<!!0,!!1>)'. at UtensilsPDN.AddControls.AddBinaryPixelOpChooser(Object name, BinaryPixelOp defaultValue) at UtensilsPDN.ProcessControls.BinaryPixelOpChooser(String displayName, BinaryPixelOp& control, BinaryPixelOp defaultValue) at PasteFromClipboardEffect.PasteFromClipboardPlugin.ProcessControlValues() at UtensilsPDN.PropertyBasedEffectEZ.OnCreatePropertyCollection() at PaintDotNet.Effects.PropertyBasedEffect.CreateConfigDialog() in D:\src\pdn\src\Effects\PropertyBasedEffect.cs:line 76 at PaintDotNet.Menus.EffectMenuBase.RunEffectImpl(Type effectType) in D:\src\pdn\src\PaintDotNet\Menus\EffectMenuBase.cs:line 915 Nothing fancy was done - tried it as simply as I could but still crashed Quote
Rick Brewster Posted July 13, 2017 Posted July 13, 2017 Send that over to the thread with the 4.0.17 build -- I probably need to fix that in paint.net Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html
AndrewDavid Posted July 14, 2017 Posted July 14, 2017 (edited) Fixed in the newest build 6404 Edited February 7, 2019 by AndrewDavid Refreshed Link Quote
acbex Posted June 3, 2018 Posted June 3, 2018 I have Paint.net 4.0.21, running on Windows Pro (64 bit) SP1 operating system. I followed the thread when you proposed setting up what became PasteFromClipboard. I think it is a great concept. I recently installed Version 1.2. But I have found what seems to be a problem. The Blend feature does not seem to work. Look at the attachment. In the top image, you can see that I have checked 'Blend with Canvas Image' and selected Normal as the Blend Mode. The red arrow points to the small image I pasted from my Clipboard. Now look at the bottom image. There I selected the Xor Blend Mode, which usually results in an image much different from the Normal. But it looks the same. I also tried then clicking the "OK' button, in case that might be what was required to change the Blend Mode. No difference. I then tried every Blend Mode in your dropdown list. They all looked the same. Is there a problem here, or have I missed a step somewhere? Harry Quote
acbex Posted June 4, 2018 Posted June 4, 2018 (edited) On 6/3/2018 at 4:58 AM, Eli said: I think you are using it on the wrong layer. It is working just fine today. Perhaps I was implementing 'Paste from Clipboard' incorrectly before. I have written some instructions so I don't forget the next time. Harry Edited June 4, 2018 by acbex add a sentence. Quote
MJW Posted June 12, 2018 Author Posted June 12, 2018 I've released version 1.3.0. For some of the tiling modes, there were cracks between the tiles. I'm not sure if it was a bug in the original version, or if PDN's method of handling the alpha for image edge pixels changed. In either case, I hope I've fixed the problem. 3 1 Quote
Seerose Posted June 12, 2018 Posted June 12, 2018 @MJW! Thank you so much for the new version. Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi
MJW Posted October 3, 2020 Author Posted October 3, 2020 I'm releasing version 2.0.0, which has two additional features I think are useful. First, in addition to the clipboard image Scale, Rotation, etc., I've added Flip Horizontal. Second, I've added a "Canvas Transparency Preservation" control. This somewhat awkwardly named control allows the user to paste the clipboard image onto an object (a region of opaque pixels on a transparent background). The transparent canvas pixels will remain transparent. 2 4 Quote
MJW Posted October 11, 2020 Author Posted October 11, 2020 I''m releasing version 2.0.1, which (I hope) fixes a problem with the centering of the pasted image in the canvas or selection. In some cases it was about half a pixel off. 1 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.