Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference bitween Bitmap and Pixmap?

Tags:

image

bitmap

What is the difference between Bitmap and pixmap?also what is the file extension of bitmap and pixmap?

like image 609
pooja Avatar asked Sep 13 '11 12:09

pooja


1 Answers

On one side, a Pixmap is a pixel map, so it is a memory area formed of pixels. On the other side, a Pixmap is used for drawing, so it is a 2d rectangular area, where drawing is possible.

This being said, the only thing which is left to understand, is how drawing is performed? The answer is that drawing is performed by setting the pixels of a PIxmap, which leads to the question what is a pixel?

As with everything in a computer, a pixel is just a numeric value. A numeric value is represented in the computer by using bits, so a pixel is a series of bits. When only one bit is used to represent a pixel, this is called a bitmap.

A pixel is a numeric value, which represents what? you might ask. Simply put, it represents a color. 1 bit can represent two colors, two bits can represent four colors, and n bits can represent 2 to the power n colors.

This numeric pixel value, maps to a color scheme, so you have multiple color schemes, for example black and white, monochrome with different intensities, and colorful color schemes such as RGB.

So, for example, in RGB, the numeric pixel value, can represent intensities of light, mixed together to form the final color, like by having a red, green, blue phosphorus material, hit with electron beams.

like image 76
mohamad.wael Avatar answered Sep 20 '22 23:09

mohamad.wael