What RGB values ​​should be set for a transparent pixel in a .PNG file?

The transparency of the pixel in the .PNG file is determined by the value of the alpha channel:

  • 0 - Transparent
  • 255 - Opaque

It seems that when the pixel is completely transparent, the components of the RGB pixel should not be important. Is this really so? Is there any agreement or any recommendations as to which RGB values ​​should be set in fully transparent pixels?

In VS2012, when I try to paint with transparent color, nothing happens. It seems that VS applies the current tool color to the current state of the pixel. As soon as the current color of the drawing tool becomes transparent, this means that there are no changes. What to do to make the transparent pixel completely transparent?

+4
source share
2 answers

In VS 2013 image editor, the following works for me:

  • Open a png image or other format that supports alpha.

  • Select View-Toolbars-Image Editor so you can see the toolbar

  • Select an eraser from the toolbar. Set the erase width in the corresponding window to 1

  • Now clicking ("erasing") a pixel will set it to transparent

+4
source

The transparency of a pixel in a PNG file is determined by the value of the alpha channel

Yes, but this is actually one of three ways to get transparency in PNG.

0 - Transparent

255 - Opaque

(, , ) , .

, , RGB . ?

, . "" , RGB ( ), .

VS

+3

All Articles