Bitmap images use a grid of pixels, each assigned a binary value, to represent visual data for digital storage, display, and manipulation on computers.
Bitmap image representation
A bitmap image (also called a raster image) is a type of digital image made up of individual pixels, which are the smallest units of a visual display. Each pixel holds information about its colour, and this colour data is stored using binary codes. When these pixels are arranged in a grid, they form a complete image that can be displayed on a screen or printed on paper.
In a bitmap, every pixel corresponds to a specific location in the image, and every location has its own binary value. These values determine what colour appears at each point. This process of mapping binary data to colour values is what enables images to be stored, edited, and transmitted digitally.
Unlike vector graphics, which describe images using shapes and equations, bitmap graphics focus on capturing exact pixel-level detail. This makes them ideal for complex images with fine detail, such as photographs.
How binary represents pixels
Practice Questions
FAQ
Bitmap images are made up of a fixed grid of individual pixels, with each pixel storing a specific colour value. When a bitmap is created, the image is designed at a particular resolution and size. If you attempt to enlarge a bitmap image beyond its original dimensions, the individual pixels must be scaled up, typically through interpolation. This process leads to pixelation, where the image appears blocky and blurry because the software is essentially guessing how to fill in the extra space between pixels. The sharpness and fine details that existed at the original size are lost because bitmaps do not contain any mathematical information about shapes or lines—only exact pixel data. This lack of scalability makes bitmaps unsuitable for uses where images need to be frequently resized, such as logos or icons. In contrast, vector graphics scale cleanly because they rely on mathematical descriptions of shapes.
While high colour depth enhances image quality by allowing for millions of colour combinations and smooth gradients, it comes with several important limitations. Firstly, file size increases significantly as the number of bits per pixel rises. For example, a 24-bit image stores three bytes per pixel, whereas an 8-bit image only stores one, resulting in three times the storage requirement. This increased file size can lead to slower load times, higher memory consumption, and more bandwidth usage when transmitting files over networks. Secondly, some older or limited devices and applications may not support high bit depths, causing compatibility issues or forced downscaling. Additionally, when dealing with very large high-resolution images (such as in medical imaging or professional photography), the cumulative data load can strain storage systems and processing power, especially when editing or rendering. These drawbacks often necessitate a balance between visual fidelity and system efficiency in real-world use cases.
Monochrome and greyscale bitmap images differ both in the range of tones they can display and the number of bits required per pixel. Monochrome images use only 1 bit per pixel, representing two possible colours—typically black and white. Each pixel is stored as either 0 or 1, making monochrome images extremely compact and efficient for simple visuals like scanned documents or line art. Greyscale images, on the other hand, use more bits per pixel, commonly 8 bits, to represent 256 shades of grey ranging from black (0) to white (255). This allows for subtle tonal variation and smoother shading, making greyscale suitable for more detailed visuals such as X-rays, drawings, and vintage photographs. The trade-off is that greyscale images require more storage than monochrome images. For example, an 800 × 600 monochrome image needs just 60,000 bytes, while the same image in greyscale would require 480,000 bytes—eight times more.
Screen resolution refers to the number of pixels displayed on a physical screen, measured in terms of width × height, such as 1920 × 1080. It determines how much detail can be shown at once and affects how large or small a bitmap image appears when displayed. Image resolution, on the other hand, is the number of pixels contained within each inch of a bitmap image—measured in pixels per inch (PPI) or dots per inch (DPI). It influences how sharp the image looks, especially when printed. For instance, an image with 300 PPI is suitable for high-quality printing, whereas 72 PPI is standard for screen use. When an image’s resolution is higher than the screen resolution, it may appear smaller or need to be zoomed out to fit. Conversely, a low-resolution image may look pixelated on high-resolution screens. Understanding the distinction helps ensure images are optimised for their intended display method.
Metadata provides essential context for interpreting and processing the binary pixel data in bitmap images. Without it, systems would not know how to render the image correctly. For example, metadata contains the image dimensions (width and height), which ensures that pixels are arranged in the correct rows and columns. It also stores the colour depth, allowing software to decode how many bits correspond to each pixel. More advanced metadata includes colour profiles (like sRGB or Adobe RGB), which ensure consistent colour reproduction across monitors, printers, and devices. Without these profiles, an image might appear differently depending on the system displaying it. Metadata can also specify the compression method (if used), which is critical for decompression and display. For digital photography and editing, metadata often contains EXIF data such as exposure settings, camera model, and timestamps. This not only aids in organisation but also allows editing software to offer tailored tools or filters. In short, metadata bridges the gap between raw binary data and meaningful visual representation.
