只有PNG支持透明度,这是真的吗? [英] Only PNG supports transparency, is that true?
问题描述
我发现JPG不支持透明度,alpha值总是255.我想知道只有png支持透明度吗?
I found JPG does not support transparency, the alpha value is always 255. I am wondering only png supports transparency?
推荐答案
-
png-32
支持不同级别的透明度。每个像素的不透明度在0到255之间,0表示完全透明。png-32
supports different levels of transparency. Each pixel can have an opacity between 0 and 255, with 0 as completely transparent.png-24
支持将一种颜色设置为完全透明。其他一切都是不透明的。png-24
supports setting one color as fully transparent. Everything else will be opaque.gif
使用调色板。您可以指定调色板中的一种颜色是完全透明的。gif
uses a color palette. You can specify that one color in the palette is fully transparent.png-8
也使用了调色板但调色板中的每种颜色都有自己的不透明度值,因此它也支持不同级别的透明度。png-8
also uses a color palette but each color in the palette has its own opacity value, so it supports varying levels of transparency too.jpg
不支持透明度。这篇关于只有PNG支持透明度,这是真的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!