Jump to content

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 post
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 post
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 post
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 post
Share on other sites

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

Link to post
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 post
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 post
Share on other sites
  • 1 year later...

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 post
Share on other sites
  • 2 months later...

Isolate Lineart is found under the Adjustments menu.

Link to post
Share on other sites
  • 4 weeks later...
  • 4 years later...

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