Jump to content
How to Install Plugins ×

Isolate Lineart


silverhammer

Recommended Posts

This is my first plugin and though it's pretty basic (and might have been done before), I think it's useful. Essentially it takes a black and white image and converts it to a "black and transparent" image. The whole point is that if you have a sketch, applying this plugin will make all of the white parts transparent so that you can color it, add a background, whatever.

 

image1.png

 

 

image2.png

 

Download the zipped DLL >> Isolate Lineart

 

Edited by toe_head2001
Fixed broken Postimg images
Link to comment
Share on other sites

A similar plugin already exists: viewtopic.php?f=16&t=25155

At the moment I'm not sure if you are right and both plugins really work the same.

Silverhammer, I like it, but why is it in "Adjustments"? I'd rather put it in "Artistic" or "Stylize". It's definately no adjustment - like Brightness/Contrast.

Link to comment
Share on other sites

Perhaps that other plugin could achieve the same affect, though you'd have to tinker with a bunch of options first. I guess if you want something simple then mine is more streamlined to use.

I put it in adjustments because my plugin is essentially a "Black and Transparent" plugin so I think it makes sense to put it in the same menu as the "Black and White" adjustment.

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 months later...
  • 3 months later...
  • 1 month later...
Is it possible to add color to the image in different areas after using the plugin?

Of course, that's what Paint.NET is for. However that is not the function of the plugin.

Link to comment
Share on other sites

Is it possible to add color to the image in different areas after using the plugin?

Of course, that's what Paint.NET is for. However that is not the function of the plugin.

I know you can but when I try to it only fills with one color. I was wondering if you could add color to different parts as in coloring the image. If it matters I'm trying to color a picture that I drew.

Link to comment
Share on other sites

You need to define selections/areas first and fill those with color.

Link to comment
Share on other sites

  • 3 weeks later...

To access HSV colors do something like this:

void Render(Surface dst, Surface src, Rectangle rect)
{
   // Delete any of these lines you don't need
   Rectangle selection = this.EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt();
   long CenterX = (long)(((selection.Right - selection.Left) / 2)+selection.Left);
   long CenterY = (long)(((selection.Bottom - selection.Top) / 2)+selection.Top);
   ColorBgra PrimaryColor = (ColorBgra)EnvironmentParameters.PrimaryColor;
   ColorBgra SecondaryColor = (ColorBgra)EnvironmentParameters.SecondaryColor;
   int BrushWidth = (int)EnvironmentParameters.BrushWidth;

   ColorBgra CurrentPixel;
   for (int y = rect.Top; y < rect.Bottom; y++)
   {
       for (int x = rect.Left; x < rect.Right; x++)
       {
           CurrentPixel = src[x,y];
           Color col = CurrentPixel.ToColor();     // These are the important lines!
           HsvColor hsv = HsvColor.FromColor(col); //
           dst[x,y] = CurrentPixel;
       }
   }
}

Color col = CurrentPixel.ToColor();                  // These are the important lines!
           HsvColor hsv = HsvColor.FromColor(col); //

Link to comment
Share on other sites

  • 2 weeks later...

This is just about the best plugin I've ever seen! I have an entire folder devoted to lineart I get from Deviantart to use in PdN as a digital colouring book for my little sister (and occasionally myself) when I babysit her. She's always getting frustrated when there are little white specks around the edges because they make the background white. I cannot tell you how much of a lifesaver this is! This should also come in real handy when it comes to importing my own lineart.

Huzzah for Silverhammer!

-Katastrophies :-D

Link to comment
Share on other sites

  • 1 year later...

capedstg7.png

Hello, I'm new to this...

I have downloaded the plugin and followed the steps above... but I don;t know what to do from here, and I can't find anything in the tutorials on "coloring a sketch". How would you add color to the above picture from this point?

Thanks

Link to comment
Share on other sites

Press F1 in Paint.net to access the online help files. Look specifically for the Drawing tools & Fill tools under the Tools Window.

Link to comment
Share on other sites

  • 2 months later...

Isolate Lineart is found under the Adjustments menu.

Link to comment
Share on other sites

  • 4 weeks later...
  • 4 years later...

The example pics are dead, does anyone have any shots of what this actually does?

https://web.archive.org/web/20100706173328/http://forums.getpaint.net/index.php?/topic/13535-isolate-lineart/

  • Upvote 1

(September 25th, 2023)  Sorry about any broken images in my posts. I am aware of the issue.

bp-sig.png
My Gallery  |  My Plugin Pack

Layman's Guide to CodeLab

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...