Jump to content
How to Install Plugins ×

SelectionInnerContour Plugin


HorridoJoho

Recommended Posts

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
Link to comment
Share on other sites

How is this different from my Selection Outline plugin:

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

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

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.

Link to comment
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
Link to comment
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
Link to comment
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.

Link to comment
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.

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint Shop Pro Filetype | RAW Filetype | WebP Filetype

The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait

 

Link to comment
Share on other sites

  • 3 weeks later...

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
Link to comment
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.

Link to comment
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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...