Jump to content
How to Install Plugins ×

Silhoette Plugin v2.1


Simon Brown

Recommended Posts

It don't work for me :(

My image turns black!

    public override void Render(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois, int startIndex, int length)
   {
       Bitmap image = new Bitmap(srcArgs.Surface.CreateAliasedBitmap());
       Graphics.FromImage(image);
       for (int i = startIndex; i < length; i++)
       {
           Rectangle rectangle = rois[i];
           for (int j = rectangle.Top; j < rectangle.Bottom; j++)
           {
               for (int k = rectangle.Left; k < rectangle.Right; k++)
               {
                   ColorBgra bgra = dstArgs.Surface[k, j];
                   bgra.R = 0;
                   bgra.G = 0;
                   bgra.B = 0;
                   dstArgs.Surface[k, j] = bgra;
               }
           }
       }
   }

Perhaps the attachment is wrong!

Link to comment
Share on other sites

Actually, that's what he intends to happen. It silhouettes images with partial transparency; turns the RGB to 000000 while preserving alpha. (he posted the explanation in Offtopic)

 

The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.
Amy: But how did it end up in there?
The Doctor: You know fairy tales. A good wizard tricked it.
River Song: I hate good wizards in fairy tales; they always turn out to be him.

Link to comment
Share on other sites

Actually, that's what he intends to happen. It silhouettes images with partial transparency; turns the RGB to 000000 while preserving alpha. (he posted the explanation in Offtopic)

I've never go to the "off-topic" topic.

Explanations are much better "in-topic" where we can find them with the plugin!

Link to comment
Share on other sites

Actually, that's what he intends to happen. It silhouettes images with partial transparency; turns the RGB to 000000 while preserving alpha. (he posted the explanation in Offtopic)

I've never go to the "off-topic" topic.

Explanations are much better "in-topic" where we can find them with the plugin!

I agree. sabrown, you should post an explanation here. :-)

 

The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.
Amy: But how did it end up in there?
The Doctor: You know fairy tales. A good wizard tricked it.
River Song: I hate good wizards in fairy tales; they always turn out to be him.

Link to comment
Share on other sites

As well as an explanation, perhaps also sample images would be handy?

I would suggest this for all your plugins where you lack screenshots, but as this one has so far had a few people stumped to its use, pushing for samples here would be best.

That's something I do wonder, why don't you have screenshots/examples for your plugins?

Link to comment
Share on other sites

I think it's some kind of outline, this is what I got:

I started with this:

1.png

Ended with this:

2.png

Not sure what it should do?

EliteOverride25.png

:) Visit-> My Website <-Visit :)

Please Call Me Elite Override

The trick to flying is throwing yourself at the floor and missing.

Link to comment
Share on other sites

That's what it is supposed to do. Try it with a slightly transparent area.

 

The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.
Amy: But how did it end up in there?
The Doctor: You know fairy tales. A good wizard tricked it.
River Song: I hate good wizards in fairy tales; they always turn out to be him.

Link to comment
Share on other sites

O, thanks. I thought I was more or less on the right track. :mrgreen:

EliteOverride25.png

:) Visit-> My Website <-Visit :)

Please Call Me Elite Override

The trick to flying is throwing yourself at the floor and missing.

Link to comment
Share on other sites

  • 1 month later...

Thanks for the plugin!

Can this please be moved to the 'Object' menu as it has a few widely used plugins that go into it (so nobody would only have 1 item in the menu). My distort menu, (and I imagine many other peoples) are very cluttered and I think it would fit well into the objects menu as the plugins in that menu need to be used on a layer that has some sort of transparency.

Anybody agree?

Link to comment
Share on other sites

  • 11 months later...
  • 1 month 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...