Jump to content

Feature: Beta Channel


Ketenks

Recommended Posts

Everyone has done it. They copy a picture selected in entirely Alpha based background and then go to paste it into another project or layer only to be miffed by the fact that the Alpha channel was also copied and that erases everything under it. What you really wanted was just the graphics that were there to be pasted...well sometimes...but not all the time.

 

Therefore, I propose the Beta Channel as being the most ultimate transparency where it can never be selected by any means or copied but it can only be overwritten. This would allow one to save a file with a Beta background where you could easily hit Ctrl+A and Ctrl+C and then Ctrl+V and only paste the pixels that actually have anything in them.

 

What do you think about this extra channel idea?

 

A toggle could be set where one could switch from Alpha to Beta at will and many more switcher features/plugins down the road.

ketenksEsignatureSmall2.png.f74cf40145e3a072030b070615ef1b93.png

Link to comment
Share on other sites

Yeah I'm not adding a beta channel in the way you describe :) Layers are already the answer, as BoltBait pointed out.

Internally, some rendering code already makes use of up to 3 "alpha" channels. There's the traditional alpha that you're familiar with, which determines how translucent a color is. Then there's both coverage and clipping masks. Coverage is important when using the Overwrite blending mode, as otherwise there's no way to distinguish between "alpha is zero because the shape doesn't draw here" (which should be a no-op when compositing) and "alpha is zero because because this area should actually be stamped out as transparent" (which should reset the destination pixel to transparent -- think of drawing a circle that's filled with a transparent color). And the clipping mask comes from the selection.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Sounds cool. I'm not sure how that works but I'm guessing those are the different ways of treating the Alpha channel. Would this be the reason why some blend modes have different blends if you swap the layers?

ketenksEsignatureSmall2.png.f74cf40145e3a072030b070615ef1b93.png

Link to comment
Share on other sites

No that's normal. The order of the layers affects the output. A [blend] B is not the same as B [blend] A

Link to comment
Share on other sites

This is due to math.

 

For example, A*B = B*A  (Multiply blend mode--order makes no difference)

And, A+B = B+A (Additive blend mode--order makes no difference)

 

But, A-B =/= B-A (Difference blend mode--order can make a HUGE difference)

Link to comment
Share on other sites

Though it doesn't change the point being made that sometimes the layer order matters, I believe Difference blend mode uses the absolute value of the difference, so for two opaque layers, the order shouldn't matter.

Link to comment
Share on other sites

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