Jump to content


Photo

Isolate Lineart


  • Please log in to reply
23 replies to this topic

#1 silverhammer

silverhammer
  • Members
  • 38 posts
  • Reputation:0

Posted 16 January 2009 - 06:54 AM

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.

Posted Image
Posted Image

Attached Files



#2 ShK_828

ShK_828
  • Members
  • 1,082 posts
  • LocationSydney,NSW,Australia
  • Reputation:0

Posted 16 January 2009 - 10:40 AM

that is a pretty simple but effective plugin. :D


dA | fBook

1000thpostachieved.


#3 Simon Brown

Simon Brown
  • Members
  • 10,187 posts
  • Reputation:15

Posted 16 January 2009 - 03:02 PM

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

#4 Fisherman's Friend

Fisherman's Friend
  • Members
  • 490 posts
  • LocationCoruscant
  • Reputation:0

Posted 16 January 2009 - 05:23 PM

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.

#5 silverhammer

silverhammer
  • Members
  • 38 posts
  • Reputation:0

Posted 16 January 2009 - 09:19 PM

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.

#6 oma

oma

    2012 Hit & Miss Award Winner

  • Members
  • 4,432 posts
  • Reputation:12

Posted 02 February 2009 - 10:56 PM

I meant to tell you that I've been using this plug in quite a bit lately and its great. No fiddling to get my line art up on the screen any longer.
thanks for the plugin.

ciao
OMA

#7 oma

oma

    2012 Hit & Miss Award Winner

  • Members
  • 4,432 posts
  • Reputation:12

Posted 02 February 2009 - 10:56 PM

I meant to tell you that I've been using this plug in quite a bit lately and its great. No fiddling to get my line art up on the screen any longer.
thanks for the plugin.

ciao
OMA

#8 salu

salu
  • Members
  • 1,058 posts
  • Locationan Unknown State of Animals
  • Reputation:0

Posted 08 February 2009 - 06:20 PM

love the plugin 8) it worked really well with images too.

#9 Tabou

Tabou
  • Members
  • 82 posts
  • Reputation:0

Posted 03 July 2009 - 03:11 AM

Quick, simple and yet so useful! Thanks.

#10 Tabou

Tabou
  • Members
  • 82 posts
  • Reputation:0

Posted 03 July 2009 - 03:11 AM

Quick, simple and yet so useful! Thanks.

#11 Tabou

Tabou
  • Members
  • 82 posts
  • Reputation:0

Posted 03 July 2009 - 03:11 AM

Quick, simple and yet so useful! Thanks.

#12 nemo

nemo
  • Members
  • 1,428 posts
  • Locationin your periphery
  • Reputation:0

Posted 20 October 2009 - 12:53 PM

i came across this ages ago but forgot to download it. This will come in perfect for the majority of my pieces. Thankyou :D
Posted Image
My Gallery ------------------------------------Skin painting tutorial
We can push out, sell out, die out.

#13 Briamoth

Briamoth
  • Validating
  • 283 posts
  • LocationBig Blue Nation
  • Reputation:0

Posted 12 December 2009 - 07:16 PM

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

#14 Ego Eram Reputo

Ego Eram Reputo

    Master of Competition Ideas and 2012 Proton Award Winner

  • Moderators
  • 5,757 posts
  • LocationNorth Canterbury, New Zealand
  • Reputation:231

Posted 13 December 2009 - 03:59 AM

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.

#15 Briamoth

Briamoth
  • Validating
  • 283 posts
  • LocationBig Blue Nation
  • Reputation:0

Posted 13 December 2009 - 04:40 AM

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.

#16 Ego Eram Reputo

Ego Eram Reputo

    Master of Competition Ideas and 2012 Proton Award Winner

  • Moderators
  • 5,757 posts
  • LocationNorth Canterbury, New Zealand
  • Reputation:231

Posted 13 December 2009 - 09:10 PM

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

#17 silverhammer

silverhammer
  • Members
  • 38 posts
  • Reputation:0

Posted 29 December 2009 - 07:32 PM

I'm actually trying to make a new version of this plugin currently. The problem is that I currently only know how to use Code Lab and I need to use HSL values, which Code Lab can't access directly to my knowledge.

Can anyone help me out here?

#18 APShredder

APShredder
  • Members
  • 1,319 posts
  • LocationMassachusetts
  • Reputation:0

Posted 30 December 2009 - 01:16 AM

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); //


#19 Katastrophies

Katastrophies
  • Members
  • 14 posts
  • Reputation:0

Posted 07 January 2010 - 09:57 AM

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

#20 Thunderjaw

Thunderjaw
  • Newbies
  • 9 posts
  • Reputation:0

Posted 26 April 2011 - 07:49 PM

Posted Image


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