Top Banner
Chung ji h ye 2001.01.31
62

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.

Dec 17, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 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.

Chung ji hye

2001.01.31

Page 2: 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.
Page 3: 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.
Page 4: 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.
Page 5: 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.
Page 6: 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.

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.

Page 7: 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.

Viewport

• Viewport – 그래픽스 윈도우 내의 사각형 영역…

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

Page 8: 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.
Page 9: 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.
Page 10: 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.
Page 11: 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.
Page 12: 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.
Page 13: 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.

Cohen sutherland Line Clipping

• To illustrate the specific steps in clipping lines against rectangular boundaries using the Cohen-Sutherland algorithm.

Page 14: 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.
Page 15: 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.
Page 16: 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.
Page 17: 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.
Page 18: 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.
Page 19: 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.
Page 20: 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.
Page 21: 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.
Page 22: 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.
Page 23: 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.
Page 24: 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.
Page 25: 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.
Page 26: 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.
Page 27: 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.
Page 28: 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.
Page 29: 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.
Page 30: 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.
Page 31: 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.
Page 32: 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.
Page 33: 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.
Page 34: 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.
Page 35: 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.
Page 36: 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.
Page 37: 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.
Page 38: 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.
Page 39: 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.
Page 40: 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.
Page 41: 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.
Page 42: 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.
Page 43: 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.
Page 44: 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.
Page 45: 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.
Page 46: 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.
Page 47: 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.
Page 48: 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.
Page 49: 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.
Page 50: 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.
Page 51: 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.

CURVE CLIPPING

The bounding rectangle for a circle or other curvedobject can be used first to test for overlap with arectangular 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

completelyinside the window, we save the object.

Page 52: 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.

CURVE CLIPPING

Page 53: 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.

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.

Page 54: 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.

TEXT CLIPPING

• METHOD 1.• - EXAMPLE

String

String

String

Page 55: 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.

TEXT CLIPPING

• METHOD 2The entire character string that overlaps a windowboundary is to use the all-or-none characterClipping.

Any character that either overlaps or is outside awindow boundary is to use the all or none character

clippingstrategy. Here we discard only those characters that are

notcompletely inside the window.

Page 56: 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.

TEXT CLIPPING

• METHOD 2• -EXAMPLE

String

String

String

Str

Page 57: 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.

TEXT CLIPPING

METHOD 3.• Text clipping is to clip the components of

individual characters

• -EXAMPLE

String

StringStrin

String

Page 58: 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.
Page 59: 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.
Page 60: 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.
Page 61: 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.
Page 62: 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.