Jump to content

Transparent color


Recommended Posts

no, that simply adjusts the transparency of whatever color you're painting with. I'm talking about a "color" that has no color, just alpha.

in this example, I'll be using white.

in PDN's default state, when you make a line, it has an anti-aliasing to it (you can see through the edges pixels on the edge of the line).

when you go into colors -> more >>, you can adjust the transparency of the color, so when you draw the line, the entire line is see-through, not just the edges (for example, if you have a black background, and a transparency level of 128, you get a grey, rgb(127,127,127) line). you can adjust the transparency so the line is completely transparent, and very little to none of the white is added. however, this doesn't provide what I'm asking for.... I guess, a more better way of saying it would be calling it an eraser color, like the way the current eraser works. however the eraser isn't good for making smooth curves, which is what the color would be for

You know the place.

Link to comment
Share on other sites

that simply blocks out the underlying color, leaving a jagged line/curve, which is what the anti-aliasing is supposed to prevent (a thinner jagged line is left when the anti-aliasing is turned off)

You know the place.

Link to comment
Share on other sites

You can also draw your lines that you want to erase on a new image in black and white, then use the Alpha Mask Import plugin to use that as the alpha channel on your image.

http://i.imgur.com/xZYt6wl.png

ambigram signature by Kemaru

[i write plugins and stuff]

If you like a post, upvote it!

Link to comment
Share on other sites

gruh.. since people only seem to read the last post, here's everything summed up

a color that was solely transparent (a null RGB component, or whatever is used to signify no color data) that is usable in the line tool, since I have two left hands, and hardly ever use the pencil, paintrbrush, or eraser, unless I'm trying to modify a very large, or very small amount of image. and I never use the eraser, or the paint brush to make a curve, since I simply can't. it turns into something a 5 year old would draw, which is not nice, let me tell you. I'll take a look at those two plugins suggested, and post results, probably in a different thread in the appropriate forum

You know the place.

Link to comment
Share on other sites

I don't understand what you are asking for. Do you have a screenshot or example .PNG that shows what results you are trying to get?

Adjusting the alpha of the color has different meanings depending on if you are using Normal vs. Overwrite blending mode.

Because of the way color+alpha works, any color with an alpha value of 0 is mathematically equivalent to any other color value with an alpha values of zero. At least for rendering purposes anyway. (Think about it like this: if a "color" is fully transparent, then it is equivalent to all other fully transparent colors.)

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

  • 2 months later...

ok, let me set out an example. take a red line, and lay it over a black background. if it's antialiased, the red at the edges of the line will ramp down to black, to make a smooth transition. if you make the red color transparent, then you get less red, and more black, if you make the red completely transparent, you get no red, and all black.

if you replace red with transparent, you get what I'm talking about

You know the place.

Link to comment
Share on other sites

I think that something with Alpha=0 on Overwrite mode is what you want. It works exactly like the eraser tool, but you can use it with lines and curves.

 

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

No, they do have AA but the blending mode (overwrite) just makes it look like they don't.

I notice that.

But if users can't see it (due to overwrite) 99% of them will just think it's not AAed

I think what gubment_cheez want would be possible if eraser tool have an option that act like line tool.

Linetool with AA :)

The_next_thousand_words_by_0_ASH_0.png

All creations Ash + Paint.NET [ Googlepage | deviantArt | Club PDN | PDN Fan ]

Link to comment
Share on other sites

Yes, ash's post is what I'd like. The current antialias/transparency implementation follows these rules


  1. [*:19agg5jk]If color is used, antialiasing is enabled, blending is normal:
    Line will be antialiased into the background
    [*:19agg5jk]If full transparency is used, antialiasing is enabled, blending is normal:
    No line is visible.
    -Transparent color will have transparency antialiased into the background.
    [*:19agg5jk]If color is used, antialiasing is enabled, blending is overwrite:
    Line will be antialiased into transparent (overwrites whatever is in the current layer).
    [*:19agg5jk]Full transparency, antialiasing is enabled, blending is overwrite:
    Completely transparent line that is +2|+4 pixels larger than the current line weight.
    -Transparent color will have antialiasing that overwrites the current layer (antialiasing into the layer below). [!!] looking at the feature requests for this indicates it will not be possible at this time (would require layer replumbing).
    [*:19agg5jk]If color is used, antialiasing is disabled, blending is normal:
    line will not be antialiased.
    [*:19agg5jk]Full transparency, antialiasing is disabled, blending is normal:
    Same as B (no visible line).
    -Line is completely transparent, with the same weight as the setting.
    [*:19agg5jk]If color is used, antialiasing is disabled, blending is overwrite:
    Line will not be antialiased.
    [*:19agg5jk]Full transparency, antialiasing disabled, blending is overwrite:
    Line is completely transparent, with the same weight as the setting (expected results)

note: full transparency and transparent color are, in theory, the same things. while antialiasing is a subset of FT/TC

it's 6:13 in the morning, I think I'm beginning to confuse myself, so I think I'll post this and try to sleep. if anything is muddy or unclear

You know the place.

Link to comment
Share on other sites

Alpha mask is probably what you want as a workaround, then. I'd like to second the feature request. :-)

 

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

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