Bitmap Image
Bitmap Image
A bitmap image, also known as a raster image, is a digital image made up of pixels arranged in a
grid-like pattern. Each pixel in a bitmap image contains information about the color and brightness
of that particular point in the image. Bitmap images are commonly used for photographs,
illustrations, and other complex images that require a high level of detail.
One of the defining characteristics of a bitmap image is its resolution, which is measured in pixels per
inch (PPI) or dots per inch (DPI). The higher the resolution, the more detail and clarity the image will
have, but also the larger the file size. Another characteristic of bitmap images is that they are
resolution-dependent, which means that the quality of the image can degrade if it is scaled up or
down too much.
Bitmap images are commonly used in various digital media, including web pages, print materials,
and digital art. However, they are not ideal for all types of images. For example, vector images are
better suited for images that require smooth lines and shapes, such as logos or diagrams.
Examples of common bitmap image file formats include JPEG, PNG, BMP, and TIFF.
1. High levels of detail: Bitmap images can represent complex images and
photographic detail, and can achieve very high levels of detail.
2. Widespread support: Bitmap images are widely supported in graphics
software and are commonly used on the web.
3. Easy to edit: Bitmap images can be edited using a range of software and
can be manipulated in a number of ways, such as changing colors,
applying filters, and adjusting brightness and contrast.
Disadvantages of Bitmap Images:
1. Color Space Conversion: The first step in the JPEG compression process
is to convert the image from its original color space (such as RGB) to the
YCbCr color space. This color space separates the brightness (luma) and
color (chroma) information of the image, allowing for more efficient
compression.
2. Dividing the Image into Blocks: The image is divided into 8x8 blocks,
and each block is processed separately during compression. This block-
based processing enables more efficient compression by taking
advantage of the similarities between pixels in each block.
3. Discrete Cosine Transform (DCT): A mathematical transformation called
Discrete Cosine Transform (DCT) is applied to each block of the image.
The DCT algorithm transforms the pixel values in each block from the
spatial domain to the frequency domain, resulting in a set of coefficients
that represent the frequency content of the image.
4. Quantization: After the DCT, the resulting coefficients are quantized,
which means they are divided by a predetermined set of values called
the quantization table. This step helps to discard some of the high-
frequency components of the image, resulting in a loss of image quality.
5. Huffman Encoding: The quantized coefficients are then compressed
using Huffman coding, which assigns shorter codes to more frequently
occurring coefficients and longer codes to less frequently occurring
coefficients. This step further reduces the size of the compressed image
by removing redundancies in the data.
6. Saving the Compressed Image: Finally, the compressed image is saved
in a JPEG file format, which contains the compressed image data and
additional information such as the quantization table used and other
metadata.
During the decompression process, the reverse operations are performed in
order to reconstruct the image from the compressed data. While the JPEG
compression process results in some loss of image quality, it is a widely used
and effective method for compressing digital images while maintaining a
reasonable level of visual quality.
What is Dithering?
Dithering is a trick many graphic applications use to fool your eye into seeing a whole
lot more colors (or grey tones) on the screen than are really there.
The computer achieves this optical illusion by mixing together different colored pixels
(tiny dots on the screen that make up an image) to trick the eye into thinking that a totally
new color exists. For instance, since pixels are so tiny, if the computer intermingles a
series of black with white dots then you’re going to think you’re seeing gray.
Color dithering smoothes out images by creating intermediate shades between two more
extreme colors (called a blend). Dithering also makes the best use of the limited number
of available colors, like when you open a 24-bit color image (millions of colors) on a
computer that’s only capable of displaying 8-bit (256 colors).
There is a half tone effect for black-and-white images called dithering. Rather than dots
of varying sizes, a dithered image has dots or squiggles all the same size, arranged in
such a way as to create the illusion of gray values
Or
In computer graphics, dithering is an image processing operation used to
create the illusion of color depth in images with a limited color palette. Colors
not available in the palette are approximated by a diffusion of colored pixels
from within the available palette.