CS2401 2 Marks

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

CS2401 - COMPUTER GRAPHICS

UNIT I
1. Define Computer graphics.
Computer graphics remains one of the most existing and rapidly growing computer fields. Computer
graphics may be defined as a pictorial representation or graphical representation of objects in a
computer.

2. Name any four input devices.


Four input devices are keyboard, mouse, image scanners, and trackball.

3. What is resolution?
The maximum number of points that can be displayed without overlap on a CRT is referred to as the
resolution.

4. Write the types of clipping?


Point clipping, line clipping, area clipping, text clipping and curve clipping.

5. Define pixel.
Pixel is shortened forms of picture element. Each screen point is referred to as pixel or pel.

6. What is frame buffer?


Picture definition is stored in a memory area called frame buffer or refresh buffer.

7. Write short notes on lines?


A line is of infinite extent can be defined by an angle of slope q and one point on the line
P=P(x,y). This can also be defined as y=mx+C where C is the Yintercept.

8. Define Circle?
Circle is defined by its center xc, yc and its radius in user coordinate units. The equation of the circle is
(x-xc) + (y-yc) = r2.

9. What are the various attributes of a line?


The line type, width and color are the attributes of the line. The line type include solid line, dashed
lines, and dotted lines.

10. What is Transformation?


Transformation is the process of introducing changes in the shape size and orientation of the object
using scaling rotation reflection shearing & translation etc.

11. What is translation?


Translation is the process of changing the position of an object in a straight-line path from one
coordinate location to another. Every point (x , y) in the object must under go a displacement to
(x|,y|). the transformation is: x = x + tx ; y = y+ty

12. What is rotation?


A 2-D rotation is done by repositioning the coordinates along a circular path, in the x-y plane by making
an angle with the axes. The transformation is given by:
X = r cos (q + f) and Y = r sin (q + f).
13. What is scaling?
A 2-D rotation is done by repositioning the coordinates along a circular path, in the x-y plane by making
an angle with the axes. The transformation is given by:
X = r cos (q + f) and Y|= r sin (q + f).
14. What is shearing?
The shearing transformation actually slants the object along the X direction or the Y direction as
required. ie; this transformation slants the shape of an object along a required plane.
15. What is reflection?
The reflection is actually the transformation that produces a mirror image of an object. For this use
some angles and lines of reflection.

16. Distinguish between window port & view port?


A portion of a picture that is to be displayed by a window is known as window port. The display area of
the part selected or the form in which the selected part is viewed is known as view port.

17. Give the various clipping methods available.


1. Point Clipping
2. Line Clipping
3. Area Clipping
4. Curve Clipping
5. Text Clipping
6.
18. Define Point Clipping.
point (X,Y)
clipping rectangle with corners (Xmin,Ymin) (Xmax,Ymax)
point is within the clip rectangle if:
Xmin <= X<= Xmax
Ymin <= Y<= Ymax

19. Define clipping.


Clipping is the method of cutting a graphics display to neatly fit a predefined graphics region or the
view port

20. Give the two rules of Weiler Atherton Clipping algorithm.

For an outside-to-inside pair of vertices, follow the polygon boundary.

For an inside-to-outside pair of vertices,. follow the window boundary in a clockwise


direction.

You might also like