Assignment One
Assignment One
SCT211-0069/2022
ICS 2311: COMPUTER GRAPHICS
ASSIGNMENT 1
PART A
Read on various image formats such as Ai, wmf, Cmx, cgm,svg ,odg, eps , dxf , bmp, jpeg
,Gif ,Tiff,PICT and png:
Explain what the abbreviation stand for and some history on the format.
State whether each of the graphic format above is raster or vector.
Briefly explain a typical application or area of usage of each of the format.
PART B:
1. Xiaolin Wu's line algorithm ((1,1) and(3, 5).
Formula: Handles anti-aliasing by calculating intensity based on distance from the
theoretical line.
Calculating slope (dy/dx) = (5-1) / (3-1) = 2
Starting with x = 1 and y = 1:
Moving along x, we calculate y as: y0 + slope * (x - x0)
For x = 2, y = 1 + 2*(2-1) = 3
For x = 3, y = 1 + 2*(3-1) = 5
Points plotted: (1,1), (1,2), (2,2), (2,3), (2,4), (3,4), (3,5)