Jump to content
Paint.NET 5.1 is now available! ×

Recommended Posts

Posted

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:

L4JCU.pngptM2V.pngKjQCX.png

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.

Posted (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 by nitenurse79

 

ZXCBOoZ.png

 

 

Posted

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: FRK8X.png

I know how to do this to simple shapes SUCH AS the square (Because I did it for that example)

Posted

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

  • Upvote 1

midoras signature.gif

Posted

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! :D

Posted

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!

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

Posted

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.

midoras signature.gif

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