Coconutsales Posted June 18, 2012 Posted June 18, 2012 Hey, I need a plugin that can invert positive and negative space with transparency. Example: I have a filled square in the middle of a transparent image. I use the plugin, and the square is now transparent, where as the originally transparent space is now filled. Visual example: Of course, I need this to do more complex shapes. Also notice the blur is accounted for. Can anyone do this? I'd GREATLY appreciate it! Thanks. Quote
nitenurse79 Posted June 18, 2012 Posted June 18, 2012 (edited) There is a work around to this 1 - Create a new canvas, (background) 2- Add a new layer, 3- Draw a filled square on the new layer (hold shift to contrain to a square) 4- On your upper layer (the black shape) go to adjustments > Invert colors 5 - Bucket fill your background with black 6- Select the magic wand from the tools and click on the (now) white square (upper layer) 7- go to the background layer and hit delete There you have it, you now have your inverted transparancy. Just remember to save as a.png or a.pdn There is a shapes plug-in here http://forums.getpai...?showtopic=3713 Hope this is of use to you Edited June 18, 2012 by nitenurse79 Quote
Coconutsales Posted June 18, 2012 Author Posted June 18, 2012 There is a work around to this 1 - Create a new canvas, (background) 2- Add a new layer, 3- Draw a filled square on the new layer (hold shift to contrain to a square) 4- On your upper layer (the black shape) go to adjustments > Invert colors 4a - Bucket fill your background with black 5- Select the magic wand from the tools and click on the (now) white square (upper layer) 6- go to the background layer and hit delete There you have it, you now have your inverted transparancy. Just remember to save as a.png or a.pdn There is a shapes plug-in here http://forums.getpai...?showtopic=3713 Hope this is of use to you Obviously, that is what I did for the example. But I need a plugin to convert more complex shapes to inverted. Here is ONE of the complex shapes I need converted: I know how to do this to simple shapes SUCH AS the square (Because I did it for that example) Quote
Coconutsales Posted June 18, 2012 Author Posted June 18, 2012 Only trying to help, sorry. Oh no, I'm not mad. Quote
midora Posted June 18, 2012 Posted June 18, 2012 Install codelab plugin in Effects folder Execute Effects->Advanced->codelab Add in the body of the inner 'for' loop after // TODO: Add additional pixel processing code here the line CurrentPixel.A = (byte)(255 - (int)CurrentPixel.A); // Invert the alpha channel of the pixel Click OK. Donate a beer to Boltbait 1 Quote
Coconutsales Posted June 18, 2012 Author Posted June 18, 2012 Install codelab plugin in Effects folder Execute Effects->Advanced->codelab Add in the body of the inner 'for' loop after // TODO: Add additional pixel processing code here the line CurrentPixel.A = (byte)(255 - (int)CurrentPixel.A); // Invert the alpha channel of the pixel Click OK. Donate a beer to Boltbait Whereas that works (and I thank you for it) it doesn't do it to the blur. It will do for now, of course. So for that, Thanks! Quote
pdnnoob Posted June 19, 2012 Posted June 19, 2012 If you don't care about the color, here's my suggestion: 1. Duplicate the layer with the object, then make the object completely black using brightness/contrast adjustment 2. Press ctrl+a then ctrl+c (copy the contents of the layer), then delete the layer 3. Use Alpha mask with "invert mask" and "copy from clipboard" checked. make sure you do not have the mix alpha box checked Done! Let me know if it works for your purposes! Quote No, Paint.NET is not spyware...but, installing it is an IQ test. ~BoltBait Blend modes are like the filling in your sandwich. It's the filling that can change your experience of the sandwich. ~Ego Eram Reputo
midora Posted June 19, 2012 Posted June 19, 2012 it doesn't do it to the blur. A=255-A inverts the alpha. But if the blur is not based on transparency then you are looking for something different. Quote
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.