Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chung ji hye 2001.01.31. Window vs. viewport A world-coordinate area selected for display is called a window. An area on the display device to.

Similar presentations


Presentation on theme: "Chung ji hye 2001.01.31. Window vs. viewport A world-coordinate area selected for display is called a window. An area on the display device to."— Presentation transcript:

1 Chung ji hye 2001.01.31

2

3

4

5

6 Window vs. viewport A world-coordinate area selected for display is called a window. An area on the display device to which a window is mapped is called a viewport. The window defines what is to be viewed; The viewport defines where it is to be displayed.

7 Viewport Viewport – 그래픽스 윈도우 내의 사각형 영역 … 주어진 윈도우에 대하여, 절단 사각형의 종횡비를 맞 추기 위하여 viewport 의 높이와 너비를 조절할 수 있 고 이미지에서 객체의 왜곡을 막을 수 있다. 또한 윈도 우의 다른 부분에 다른 이미지를 표시하기 위해 여러 개의 viewport 을 사용 할 수 있다.

8

9

10

11

12

13 Cohen sutherland Line Clipping To illustrate the specific steps in clipping lines against rectangular boundaries using the Cohen-Sutherland algorithm.

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51 CURVE CLIPPING The bounding rectangle for a circle or other curved object can be used first to test for overlap with a rectangular clip window. If the bounding rectangle for the object is completely outside the window, we discard the object. If the bounding rectangle for the object is completely inside the window, we save the object.

52 CURVE CLIPPING

53 TEXT CLIPPING METHOD 1. The simplest method for processing character strings relative to a window boundary is to use the all or none string – clipping strategy. If all of the string is inside a clip window, we keep it. Otherwise, the string is discarded.

54 TEXT CLIPPING METHOD 1. - EXAMPLE String

55 TEXT CLIPPING METHOD 2 The entire character string that overlaps a window boundary is to use the all-or-none character Clipping. Any character that either overlaps or is outside a window boundary is to use the all or none character clipping strategy. Here we discard only those characters that are not completely inside the window.

56 TEXT CLIPPING METHOD 2 -EXAMPLE String Str

57 TEXT CLIPPING METHOD 3. Text clipping is to clip the components of individual characters -EXAMPLE String Strin String

58

59

60

61

62


Download ppt "Chung ji hye 2001.01.31. Window vs. viewport A world-coordinate area selected for display is called a window. An area on the display device to."

Similar presentations


Ads by Google