Sign in to follow this  
Followers 0
HorridoJoho

SelectionInnerContour Plugin

13 posts in this topic

Hello,
 
this is my second plugin for PDN.
 

Hidden Content: Description
This plugin applies an inner contour to any selected area on the layer with the primary selected color.

Look at the picture and the video below to see what this plugin can do.

Hidden Content: License
Copyright © 2014 Christian Buck
https://github.com/HorridoJoho/PaintDotNetPlugins

This software is provided 'as-is', without any express or implied warranty. In
no event will the authors be held liable for any damages arising from the use
of this software.

Paint.NET is an image editing software. The original Paint.NET software can be
found at http://www.getpaint.net/. The license and copyright holders can be
found at http://www.getpaint.net/license.html.

1. Permission is granted to anyone to use this software in any environment,
including but not necessarily limited to: personal, academic, commercial,
government, business, non-profit, and for-profit, but only together with
the original Paint.NET software.

2. Permission is granted to anyone to alter the sourcecode of this software
and redistribute the sourcecode of this software, altered and unaltered, for
free. "Free" in the preceding sentence means that there is no cost or charge
associated with getting the sourcecode of this software.

3. Permission to distribute binary forms of this software, altered and
unaltered, is only granted to the copyright holders of Paint.NET.

4. This notice may not be removed or altered from any source distribution.
Hidden Content: Globalization
  • Fallback Language: English
  • Globalizations
    • German (Deutsch)

 

Sourcecode on github: https://github.com/HorridoJoho/PaintDotNetPlugins

 

The contents of the attached zip file go directly into the Effects folder.

No more different archives for 32 & 64 bit, the one zip file should work for 32 & 64 bit.

 

The following is a video demonstrating the plugin(Watch on youtube @ 1080p):
http://www.youtube.com/watch?v=CWiy2wbHSu4

 

After the last changes the user interface looka like this, but functionallity is basically the same.

post-102983-0-35006300-1392843114_thumb.

SelectionInnerContour_master_47902c242a24f7d80c901a56bc659df55cf46759.zip

Edited by HorridoJoho
0

Share this post


Link to post
Share on other sites

How is this different from my Selection Outline plugin:

http://forums.getpaint.net/index.php?/topic/11514-

Source code is on this page: http://boltbait.com/pdn/CodeLab/help/tutorial4.asp

To me, it looks the same, only less features.

I suggest taking a few minutes to be sure a plugin hasn't already been written before starting on one.

0

Share this post


Link to post
Share on other sites

Updated:

ConfigUi now features a color picker and an anti-aliasing switch.

Now using GDI+ graphics to draw.

 

@BoltBait

I didn't mean to offend you. I knew about your plugin before, but i was not so happy with the performance.

My implementation with a contour strength of 100 renders in under a second with anti aliasing on a 800x600 image.

Your implementation with a strength of 10 renders in around 4 seconds on a 800x600 image.

Edited by HorridoJoho
0

Share this post


Link to post
Share on other sites

Update:

Now this plugin is much more advanced, but sadly only runs on PDN 4 now(the old version is still available).

The reaon is the included GPC wrapper GpcDotNet. It's written in C++/CLI targeting .NET 3.5, but it automatically

links to a version of mscorlib.dll which the .NET linker don't like when linking the plugin targeting .NET 3.5, so i

had to switch the plugin to target .NET 4.0 and it linked.

 

Make sure to check out the video on youtube @ 1080p.

Edited by HorridoJoho
0

Share this post


Link to post
Share on other sites

Updated:
Now it should work on PDN 3 also.

The contents of the zip archive go directly into the Effects folder.

0

Share this post


Link to post
Share on other sites

I'm glad to see that you've brought something interesting to the table instead of just copying another plugin.

 

It is now quite an improvement over my original.

0

Share this post


Link to post
Share on other sites

Thank you, this plugin will help me make my borders. Just a couple of requests: Is there a way to draw the contour "outside" the selected area? Could it be possible to add a feature that will allow me choose my own texture or image to create realistic frame as AKVIS Artsuit does? Thankyou again for your work.

0

Share this post


Link to post
Share on other sites

Is there a way to draw the contour "outside" the selected area?

 

Plugins can only write within the bounds of the selection.

0

Share this post


Link to post
Share on other sites

Updated.

* Revamped the user interface. A screenshot is included in the first post(i couldn't figure out how to use buildin controls in custom effect dialogs, so i wrote my own angle and color picker.)

+ Added box for custom dash style.

+ Added compositing mode.

+ Added color lists for linear and path gradient.

+ Added gamma correction to linear gradient brush.

+ Added a simple texture filling mode.

Edited by HorridoJoho
0

Share this post


Link to post
Share on other sites

Could it be possible to add a feature that will allow me choose my own texture or image to create realistic frame as AKVIS Artsuit does?

I'm sorry but i don't think this will fit inside this plugin.

0

Share this post


Link to post
Share on other sites

Hello, Thankyou for considering my request. I have no programming skills but I can say that your plugin is wonderful. In the meanwhile I created a frame with the help of your InnerContour plugin. I think that you are on the right path and perhaps another plugin will be necessary to automatize the steps.

frame-made-with-s...rcontour-4408cbc.jpg

Edited by Eli
0

Share this post


Link to post
Share on other sites
It's crashing for me.  I think I've done every thing right in installing it

 

File: C:\Program Files\paint.net\Effects\SelectionInnerContour.dll

      Effect Name: SelectionInnerContour.SicEffect

      Full error message: PaintDotNet.WorkerThreadException: Worker thread threw an exception ---> System.MissingMethodException: Method not found: '!!0[] PaintDotNet.ArrayExtensions.Subarray(!!0[], Int32, Int32)'.

   at SelectionInnerContour.SicEffect.OnSetRenderInfo(SicToken token, RenderArgs dstArgs, RenderArgs srcArgs)

   at PaintDotNet.Effects.Effect`1.OnSetRenderInfo(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs) in D:\src\pdn\paintdotnet\src\Effects\Effect`1.cs:line 67

   at PaintDotNet.Effects.BackgroundEffectRenderer.ThreadFunction() in D:\src\pdn\paintdotnet\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 220

   --- End of inner exception stack trace ---

   at PaintDotNet.Effects.BackgroundEffectRenderer.DrainExceptions() in D:\src\pdn\paintdotnet\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 431

   at PaintDotNet.Effects.BackgroundEffectRenderer.Abort() in D:\src\pdn\paintdotnet\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 387

   at PaintDotNet.Menus.EffectMenuBase.<>c__DisplayClass38.<RunEffectImpl>b__26() in D:\src\pdn\paintdotnet\src\PaintDotNet\Menus\EffectMenuBase.cs:line 1056
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0