Docsity

Video Display Devices - Computer Graphics - Lecture Slides, Slides of Computer Graphics

Partial preview of the text

Download Video Display Devices - Computer Graphics - Lecture Slides and more Slides Computer Graphics in PDF only on Docsity!

Computer

Graphics

Lecture 13

 Refresh Cathode-Ray Tubes

 Raster-Scan Displays

 Random-Scan Displays

 Color CRT Monitors

 Direct-View Storage Tubes

 Flat-Panel Displays

 3-D Viewing Devices

Video Display Devices

Video Controller

Architecture of a raster system with a fixed portion of system memory reserved for the frame buffer.

Graphics Card or

Display Adaptors

Monochrome Adaptor (MA)

Hercules Adaptor (HA)

Color Graphics Adaptor (CGA)

Enhanced Graphics Adaptor (EGA)

Graphics Card or

Display Adaptors

Multicolor Graphics Adaptor (MCGA)

Video Graphics Adaptor (VGA)

Super Video Graphics Adaptor

(SVGA)

Extended Graphics Adaptor (XGA)

You can use this for assembler or you can embed this code in C language using ‘asm’ keyword

asm { MOV AH, MOV AL,13h;;mode number from 0- INT 10h }

Source Code for

Writing Pixel

Code to write pixel using video BIOS interrupt 10h and service number 0ch. MOV AH,0Ch MOV AL,COLOR_NUM MOV BH, MOV CX,ROW_NUM MOV DX,COLUMN_NUM INT 10h Docsity.com

Incremental Line

Algorithm

This algorithm exploits simple line equation

y = m x + b

where m = dy / dx

and b = y – m x

DDA Algorithm

DDA abbreviated for digital differential analyzer has a very simple technique.

Find difference, dx and dy as:

dy = y2 – y dx = x2 – x

Next step is to find xIncrement and yIncrement:

xIncrement = dx/step

yIncrement = dy/step

Bresenham Algorithm