rilpoint_mw113


位图

Suppose the smiley face in the top left corner is an RGB bitmap image. When zoomed in, it might look like the big smiley face to the right. Every square represents a pixel. Zoomed in further we see three pixels whose colors are constructed by adding the values for red, green and blue.
Suppose the smiley face in the top left corner is an RGB bitmap image. When zoomed in, it might look like the big smiley face to the right. Every square represents a pixel. Zoomed in further we see three pixels whose colors are constructed by adding the values for red, green and blue.

位图(又称光栅图、digital image, bitmap)是使用像素阵列来表示的图像,每个像素的色彩信息由RGB组合或者灰度值表示。根据颜色信息所需的数据位分为1、4、8、16、24及32位等,位数越高颜色越丰富,相应的数据量越大。其中使用1位表示一个像素颜色的位图因为一个数据位只能表示两种颜色,所以又称为二值位图。通常使用24位RGB组合数据位表示的的位图称为真彩色位图。

[编辑] 範例

這裡以大寫字母 "J" 來展示點陣圖(bitmap):

J

靠近看這個字母會像這個樣子,這裡我們用"X" 與 "." 這兩個字元來表示像素的格子:

.....X
.....X
.....X
.....X
.....X
.....X
X....X
X....X
.XXXX.

用電腦的角度來看更接近這個樣子,"."表示zero而"X"表示one:

000001
000001
000001
000001
000001
000001
100001
100001
011110

導致下列的圖形: . 放大二十倍左右:

[编辑] 参见


電腦小作品 这是一个与计算机相关的小作品,您可以帮助维库扩充其内容。