Skip to content

About Bitmaps #19

Answered by Ank1taS
H1manshu21 asked this question in Q&A
May 14, 2022 · 4 comments · 2 replies
Discussion options

You must be logged in to vote

A bitmap is a map of bits i.e bitmap is a 2D array of pixels where the image is an array of rows and each row is the array of pixels.

In an image like BMP (short for bitmap), JPEG, PNG, etc each pixel has some value according to image size that results in a specific color. BMP supports 1, 4, 8, 16, 24, and 32 bits color. Each pixel has 3 channels i.e Red, Green and Blue.

A 8-bit BMP image means each pixel requires 8 bits size and each pixel can have a maximum of 256 (2^8) possible colors. Similarly, for a 16 bits and 24 bits image maximum of 65,536 and 16.7 million possible shades of color can be represented in a pixel. Refer this
therefore a 24 bits color refers to 8-bits red + 8-bits gr…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by H1manshu21
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@SHembram18
Comment options

Comment options

You must be logged in to vote
1 reply
@Tushar7-coder
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed Important
5 participants