電腦中的顏色系統
The color system of  computer.


謹獻給對電腦顏色表示好奇的朋友們


黑白
Black and White


=> 只有黑和白兩色,連灰色都沒有
=> Only black and white without Gray.

灰階
Gray Scale

 => 從黑到白的256個顏色
 => 256 colors from black to white gradually.



彩色
Color



Color Space.



在彩色中,每個顏色都是由三原色組成
In a colored monitor, every color is formed form three basic colors :

紅、綠、藍
Red . Green . Blue.


而每個原色只需存在256種強度
 因為在256種強度之中,就很難區別相鄰兩個顏色的差別了
 例如,第200號顏色和第201號顏色,看起來幾乎沒有差別
And, It's enough for each basic color to have 256 colors.
  Because it's already hard for one to distinguish the color next to it.
  For example, #200 and #201 look almost the same, but they are actually different.

另一個例子
  這是紅黑漸層
  你很難找到每一個顏色獨立的界線
  Another example.
  256 colors from red to black.
  It's hard for you to identify where is the boundary of each color.









顏色的品質
The quality of color.



高彩 High Color ( Red 2^5 , Green 2^6 , Blue 2^5 )

   Red    5 bit                32
   Green  6 bit                64
+) Blue   5 bit           x)   32
---------------           -----------
  16 bit Color  = 2^16 =  65536 colors



全彩 True Color ( Red 2^8 , Green 2^8 , Blue 2^8 )

   Red    8 bit                256
   Green  8 bit                256
+) Blue   8 bit           x)   256
---------------           -----------
  24 bit Color  = 2^24 =  16777216 colors






索引色 => 從全彩中挑選256個顏色在一個圖檔裡
Indexed Color => 256 Colors chosen from True Color in a picture



其中GIF格式,就是用indexed color做出來的
The GIF format is the usage of indexed color


如何計算一個未經壓縮的BMP檔案大小?
How to calculate a fize size of a uncompressed Bitmap File?


100 * 100像素的 全彩圖 (24bit)

The size of a file which is
100 * 100 pixel , 24 bit color

100 * 100 * 24 = 240,000 bits = 30,000 bytes = 30KB

arrow
arrow
    全站熱搜

    finalfrank 發表在 痞客邦 留言(0) 人氣()