Sign in to follow this  
Followers 0
Simon Brown

Silhoette Plugin v2.1

20 posts in this topic

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!

0

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)

0

Share this post


Link to post
Share on other sites

what does this do?

my just turns back :(

Edit: Nevermind :D i got it

0

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!

0

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

0

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?

0

Share this post


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

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites
Try it on a photograph and you will see properly what this plugin is intended to do.

Sorry - wrong plugin

0

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?

0

Share this post


Link to post
Share on other sites

I've GPL'd it and released a new version. If someone hasn't by the time I get round to it i'll post a build.

0

Share this post


Link to post
Share on other sites

Am I wrong or is this simply 1 line in CodeLab ? :?

0

Share this post


Link to post
Share on other sites

It's meant to do that - however, it's only useful when working with images with transparency.

0

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  
Followers 0