Paint.NET

Welcome to the Paint.NET forum!
It is currently Wed Nov 25, 2009 7:27 am

All times are UTC


Forum rules


Questions or problems with plugin installation? Click here.



Post new topic Reply to topic  [ 62 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: BlendModes Plus v1.3 (10/30/09)
PostPosted: Sun Nov 01, 2009 6:53 am 
Offline
User avatar

Joined: Tue Jul 25, 2006 10:12 pm
Posts: 3118
Location: Rochester, NY
I skimmed the last 3 pages and didn't see this requested yet:

Load from clipboard...

_________________
Image
Take responsibility for your own intelligence. ;) -Rick Brewster


Top
 Profile  
 
 
 Post subject: Re: BlendModes Plus v1.3 (10/30/09)
PostPosted: Sun Nov 01, 2009 1:42 pm 
Offline
User avatar

Joined: Fri Jun 26, 2009 2:11 am
Posts: 928
Location: Massachusetts
I thought about doing something like that before, but just never got around to it. I see what I can do later today.

_________________
Image


Top
 Profile  
 
 Post subject: Re: BlendModes Plus v1.3 (10/30/09)
PostPosted: Tue Nov 03, 2009 12:14 am 
Offline
User avatar

Joined: Sat Sep 19, 2009 11:26 pm
Posts: 47
Hi APShredder,

Often I want to compare two layers A and B, yielding a third layer C which contains the signed differences between the respective pixels of A and B. The Difference blend mode in Paint.NET only gives the absolute difference, so I lose information about whether the pixel from the top layer was brighter than the pixel from the bottom, or the other way around.

Difference blend mode: C(x,y,channel) = |A(x,y,channel) - B(x,y,channel)|
Signed difference: C(x,y,channel) = [A(x,y,channel) - B(x,y,channel)] / 2 + 127.5

Technically this can be done with built-in blend modes, Invert Colors, and Levels. But it's a ten-step process :(

Could you potentially add this to BlendModes Plus? I'd be grateful! I can upload an example of the intended effect later, if you need one.

_________________


Top
 Profile  
 
 Post subject: Re: BlendModes Plus v1.3 (10/30/09)
PostPosted: Tue Nov 03, 2009 4:22 am 
Offline
User avatar

Joined: Mon Nov 02, 2009 11:20 pm
Posts: 14
This is really fun to play with, and even more fun to legitimately alter pictures with.

I'll have to make an obligatory "Will it Blend?" parody video.


Top
 Profile  
 
 Post subject: Re: BlendModes Plus v1.3 (10/30/09)
PostPosted: Tue Nov 03, 2009 9:09 pm 
Offline
User avatar

Joined: Fri Jun 26, 2009 2:11 am
Posts: 928
Location: Massachusetts
@Neil Cassidy - I don't see why not! I'll try working on it later tonight, but could you do me a favor, and upload an example of what it should look like. Thanks!

@Rail Tracer - Thanks! And if you do make that video, send me the link. That's something I'd like to see.

_________________
Image


Top
 Profile  
 
 Post subject: Re: BlendModes Plus v1.3 (10/30/09)
PostPosted: Wed Nov 04, 2009 5:43 am 
Offline
User avatar

Joined: Sat Sep 19, 2009 11:26 pm
Posts: 47
Thanks for agreeing to help! My current procedure gives the wrong result for color images (unless it's run individually on each channel). It takes almost 40 operations to get the correct result in Paint.NET. It should only be a few lines of C#.

_________________


Last edited by Neil Cassidy on Sun Nov 15, 2009 8:57 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: BlendModes Plus v1.3 (10/30/09)
PostPosted: Wed Nov 04, 2009 9:40 am 
Online
User avatar

Joined: Tue Mar 25, 2008 3:05 am
Posts: 726
Location: Hong Kong
Wow...WTF. I haven't noticed this until now. But it's awesome! Great job! You can be the blend modes master. LOL

_________________
Latest
Image


Top
 Profile  
 
 Post subject: Re: BlendModes Plus v1.3 (10/30/09)
PostPosted: Thu Nov 05, 2009 11:24 am 
Offline

Joined: Sun Dec 23, 2007 12:42 am
Posts: 337
Got em!
This will be AMAZING - Blend modes are my near favorite part of PDN. Thanks! ^^

_________________


Top
 Profile  
 
 Post subject: Re: BlendModes Plus v2.0 (11/8/09)
PostPosted: Sun Nov 08, 2009 7:13 pm 
Offline
User avatar

Joined: Fri Jun 26, 2009 2:11 am
Posts: 928
Location: Massachusetts
UPDATE: Copy from clipboard feature added, Signed Difference blend mode added.

_________________
Image


Top
 Profile  
 
 Post subject: Re: BlendModes Plus v2.0 (11/8/09)
PostPosted: Sun Nov 08, 2009 7:30 pm 
Offline
2008 "WEOMPA Award" and "Howard Hughes Award for Eccentricity" (Winner?)
User avatar

Joined: Mon Nov 05, 2007 6:20 pm
Posts: 8698
Location: UK
Several problems (v3.5 Stable on Windows 7 64bit):

--
Clicking the text copy image to clipboard doesn't select the radiobutton (seems illogical given that radiobuttons can have text).

--
Repro: Load an image and switch to clipboard mode.

Code:
File: C:\Program Files\Paint.NET\Effects\BlendModesPlus.dll
      Effect Name: BlendModesPlus.EffectPlugin
      Full error message: PaintDotNet.WorkerThreadException: Worker thread threw an exception ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at BlendModesPlus.EffectPlugin.Render(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois, Int32 startIndex, Int32 length)
   at PaintDotNet.Effects.Effect.Render(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois) in D:\src\pdn\paintdotnet\src\Effects\Effect.cs:line 163
   at PaintDotNet.Effects.BackgroundEffectRenderer.ThreadFunction() in D:\src\pdn\paintdotnet\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 156
   --- End of inner exception stack trace ---
   at PaintDotNet.Effects.BackgroundEffectRenderer.DrainExceptions() in D:\src\pdn\paintdotnet\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 332
   at PaintDotNet.Effects.BackgroundEffectRenderer.Abort() in D:\src\pdn\paintdotnet\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 301
   at PaintDotNet.Effects.BackgroundEffectRenderer.Start() in D:\src\pdn\paintdotnet\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 261
   at PaintDotNet.Menus.EffectMenuBase.<>c__DisplayClass18.<>c__DisplayClass1c.<RunEffectImpl>b__d() in D:\src\pdn\paintdotnet\src\PaintDotNet\Menus\EffectMenuBase.cs:line 735


--
Repro: Copy something to the clipboard, click copy image to clipboard, wait for it to render, copy another image, switch to file mode and back.

Code:
File: C:\Program Files\Paint.NET\Effects\BlendModesPlus.dll
      Effect Name: BlendModesPlus.EffectPlugin
      Full error message: PaintDotNet.WorkerThreadException: Worker thread threw an exception ---> System.ArgumentOutOfRangeException: Coordinates out of range, max={Width=863, Height=539}
Parameter name: (x,y)
Actual value was {X=0,Y=540}.
   at PaintDotNet.Surface.get_Item(Int32 x, Int32 y) in D:\src\pdn\paintdotnet\src\Core\Surface.cs:line 949
   at BlendModesPlus.EffectPlugin.Render(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois, Int32 startIndex, Int32 length)
   at PaintDotNet.Effects.Effect.Render(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois) in D:\src\pdn\paintdotnet\src\Effects\Effect.cs:line 163
   at PaintDotNet.Effects.BackgroundEffectRenderer.RendererContext.Renderer(EffectConfigToken token) in D:\src\pdn\paintdotnet\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 127
   --- End of inner exception stack trace ---
   at PaintDotNet.Effects.BackgroundEffectRenderer.DrainExceptions() in D:\src\pdn\paintdotnet\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 332
   at PaintDotNet.Effects.BackgroundEffectRenderer.Abort() in D:\src\pdn\paintdotnet\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 301
   at PaintDotNet.Effects.BackgroundEffectRenderer.Start() in D:\src\pdn\paintdotnet\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 261
   at PaintDotNet.Menus.EffectMenuBase.<>c__DisplayClass18.<>c__DisplayClass1c.<RunEffectImpl>b__d() in D:\src\pdn\paintdotnet\src\PaintDotNet\Menus\EffectMenuBase.cs:line 735

_________________
Image
Wave Username: simonbrown60


Top
 Profile  
 
 Post subject: Re: BlendModes Plus v2.0 (11/8/09)
PostPosted: Sun Nov 08, 2009 7:35 pm 
Offline
2008 "GE Award for Plugin Brilliance" Winner
User avatar

Joined: Tue Apr 17, 2007 10:51 pm
Posts: 7310
Location: Colorado
Bug: If the clipboard does not contain an image, there is a valid file path in the textbox, and the user selects the clipboard option, the plugin will crash.

If the image from the clipboard or file is a different size than the layer, it will be stretched to fit the whole layer. This, I think, should be optional and also respect selections. That is, if the stretching is enabled, it should stretch to the selection rather than the whole layer.

Also, an option to position the fake layer would be nice.

_________________
I'm Bike-Stick-Man and I approve this message I am right, so shut up.


Top
 Profile  
 
 Post subject: Re: BlendModes Plus v2.0 (11/8/09)
PostPosted: Sun Nov 08, 2009 7:44 pm 
Offline
User avatar

Joined: Fri Jun 26, 2009 2:11 am
Posts: 928
Location: Massachusetts
Thanks for the error reports guys. I'll probably have them fixed by tomorrow afternoon.

EDIT: Nevermind. They should be fixed now. And I'll try working on the resizing and placement things later.

_________________
Image


Top
 Profile  
 
 Post subject: Re: BlendModes Plus v2.1 (11/8/09)
PostPosted: Sun Nov 08, 2009 10:45 pm 
Offline
User avatar

Joined: Sat Sep 19, 2009 11:26 pm
Posts: 47
"Signed Difference" works great, APShredder. Thanks very much!

_________________


Top
 Profile  
 
 Post subject: Re: BlendModes Plus v2.1 (11/8/09)
PostPosted: Sun Nov 08, 2009 11:12 pm 
Offline
User avatar

Joined: Fri Jun 26, 2009 2:11 am
Posts: 928
Location: Massachusetts
No problem. :wink:

_________________
Image


Top
 Profile  
 
 Post subject: Re: BlendModes Plus v2.1 (11/8/09)
PostPosted: Sun Nov 08, 2009 11:17 pm 
Offline
User avatar

Joined: Thu Sep 24, 2009 10:10 pm
Posts: 182
You just keep adding more and more blend modes, don't you? :wink:

Love them all!

Got any other ideas for amazing plugins?

_________________


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 62 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: Goonfella and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosted by Forumer & phpBB

Get your Forumer™ today!

Adding a forum to your website is a great way to get return visitors.

» Get your own Free Forum!

Terms of Use

Privacy Policy

Report Abuse

Copyright © 2003-2009 Forumer. All Rights Reserved. | Copyright © paint.NET