Date: 21-January-2024
Time: 07:56:00 PM
Author: Shashi Kant Mani
Graphics:
Graphics is the type of data that is either visible or printable. In general, Graphics term is used to refer to the images that are computer generated. Up to some extent, it’s right but technically any image either that is computer generated or is camera captured, can be called as graphics.
Especially if we talk about computer graphics, we classify it in following two types:
Pixel and Resolution:
A pixel is the smallest visible dot on the screen. On a screen, every visible element is composed of lots of pixels. These pixels have their own dimensions and sizes, and hence in computer graphics, size of every image is defined in pixels as units.
Resolution of an image is written as a multiplication expression to define the height and width of the image. For example: An image having resolution of {1024 X 768} is simply having 1024 pixels in width and 768 pixels in height thus making a total of 786432 pixels in that image.
Size estimation of an image:
The size of an image file is estimated by multiplying the bits required to represent one single pixel with total number of pixels in that image.
For example: An image having resolution of {1024 X 768} and having weight of a pixel as 1 Byte will consume about {(1024 X 768) X 1} bytes i.e. 786432 Bytes. In upper sizing metrics, it'll be 768KB.
The same image having weight of a pixel as 2 Byte will consume about {(1024 X 768) X 2} bytes i.e. 1572864 Bytes. In upper sizing metrics, its 1536KB or nearly 1.5MB.
See the examples: