Machine-translated by Google. Questions are authored in English.
Top

Clipping Algorithms Questions and Answers

1.

Which of the given options best describes the truthfulness of the following statements? i) Clipping process determines each element into the visible and invisible portion. The visible portion is selected. An invisible portion is discarded. ii) Clipping can be applied through hardware as well as software. iii) Point clipping, area clipping and text clipping are the types of clipping.

Exam Year(s)

DSSSB TGT - 2023,

Answer: B

All three statements are true. Clipping decides which part of each element is in the visible region, keeps the visible portion and discards the invisible portion. It can be done in hardware as well as in software, and point clipping, area clipping and text clipping are among its types. So the second option is correct and the options that mark any statement false are wrong. Text clipping can be done by discarding whole strings, characters or parts of characters that fall outside the clip window.

Please log in or register to report this question.

2.

Binary region codes assigned to line end points according to relative position with respect to the clipping rectangle in the row order are :

Exam Year(s)

MH SET - 2019, SET Exam - 2019,

Answer: B

In row order the codes are 1001, 1000, 1010, 0001, 0000, 0010, 0101, 0100, 0110.

Cohen-Sutherland line clipping gives each region a 4-bit code whose bits, read from left to right, stand for above, below, right and left of the window (TBRL); a bit is 1 when the point lies on that side. Reading the nine regions row by row:

100110001010
000100000010
010101000110

The top row is above-left, above, above-right; the middle row is left, inside, right; the bottom row is below-left, below, below-right. The other options put 1010 (above-right) in the first position of the second row, or swap codes within the second and third rows.

Please log in or register to report this question.

Loading…

Other Subjects

Tags: Clipping Algorithms Questions and Answers