You are on page 1of 2

Assignment 02

Computer Graphics

Comsats University Islamabad, Vehari Campus

INSTRUCTIONS:

Please submit the assignment in hand-written form. Printed assignment will not be accepted.

Submit the assignment on Monday, 17th April.

Question # 01 [10]

You have been given an image with dimensions 480 x 360 pixels, using the RGB color model and a total
size of 4,147,200 bits. Calculate

1. The color depth of the image in bits per pixel.


2. Find the number of bits allocated for each color channel, including red, green, and blue.
3. Calculate the total number of color shades that can be displayed in the image.
4. After calculating the color depth of the image, explain the significance of color depth in digital
images and how it affects image quality.
5. Finally, give an example of a context in which a high color depth would be beneficial and
another context in which a lower color depth may be acceptable.

Question # 02 [03]

White 000
Black 001
Red 010
Purple 011
Light Green 100
Green 111

Using the above colour codes construct the bitmap of the following image.
Question # 03 [05]

Image pixelator is a free online tool that pixelate your image. Explore the tool and answer the following
set of questions:

1. The tool provides two types of pixilation based on the area of image. Mention both the
preferences.
2. The tool offers a few image pixelator options. State the purpose of the following options:
a. Pixelation Strength
b. Pixelation Rectangle Position
c. Pixelation Rectangle Size

Question # 04 [02]

Explain how dithering helps to reduce or eliminate color banding in images?

You might also like