Simon Brown Posted April 12, 2008 Share Posted April 12, 2008 http://code.google.com/p/silhouettepdn/ Quote Link to comment Share on other sites More sharing options...
MadJik Posted April 12, 2008 Share Posted April 12, 2008 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! Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
david.atwell Posted April 12, 2008 Share Posted April 12, 2008 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) Quote 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 More sharing options...
punisherjb Posted April 12, 2008 Share Posted April 12, 2008 wow this will be very usefull thanks Quote recently converted from photoshop Link to comment Share on other sites More sharing options...
iRock Posted April 12, 2008 Share Posted April 12, 2008 what does this do? my just turns back Edit: Nevermind i got it Quote My DA||My Gallery|My Youtube Link to comment Share on other sites More sharing options...
MadJik Posted April 12, 2008 Share Posted April 12, 2008 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! Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
david.atwell Posted April 12, 2008 Share Posted April 12, 2008 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. :-) Quote 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 More sharing options...
Myrddin Posted April 12, 2008 Share Posted April 12, 2008 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? Quote How to Save Your Images under Different File Types My dA Gallery Link to comment Share on other sites More sharing options...
IceFusion Posted April 12, 2008 Share Posted April 12, 2008 I think it's some kind of outline, this is what I got: I started with this: Ended with this: Not sure what it should do? Quote 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 More sharing options...
david.atwell Posted April 12, 2008 Share Posted April 12, 2008 That's what it is supposed to do. Try it with a slightly transparent area. Quote 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 More sharing options...
Simon Brown Posted April 12, 2008 Author Share Posted April 12, 2008 Try it on a photograph and you will see properly what this plugin is intended to do. Quote Link to comment Share on other sites More sharing options...
IceFusion Posted April 12, 2008 Share Posted April 12, 2008 O, thanks. I thought I was more or less on the right track. Quote 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 More sharing options...
Simon Brown Posted April 12, 2008 Author Share Posted April 12, 2008 Try it on a photograph and you will see properly what this plugin is intended to do. Sorry - wrong plugin Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted April 13, 2008 Author Share Posted April 13, 2008 Update Posted This should be much faster than the previous version. Quote Link to comment Share on other sites More sharing options...
bEPIK Posted June 7, 2008 Share Posted June 7, 2008 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? Quote Water, Wood and Hair Tutorial Link to comment Share on other sites More sharing options...
Simon Brown Posted May 22, 2009 Author Share Posted May 22, 2009 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. Quote Link to comment Share on other sites More sharing options...
Aethec Posted May 22, 2009 Share Posted May 22, 2009 Am I wrong or is this simply 1 line in CodeLab ? :? Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted May 22, 2009 Author Share Posted May 22, 2009 I know, but it was created to fill a need. Build posted. Quote Link to comment Share on other sites More sharing options...
crimsonsorrow Posted July 5, 2009 Share Posted July 5, 2009 turns everything i've tried to black. that's it. Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted July 5, 2009 Author Share Posted July 5, 2009 It's meant to do that - however, it's only useful when working with images with transparency. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.