What is the difference between Bitmap and pixmap?also what is the file extension of bitmap and pixmap?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With