Sign in to follow this  
Simon Brown

Silhoette Plugin v2.1

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!

Share this post


Link to post
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)

Share this post


Link to post
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!

Share this post


Link to post
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. :-)

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this