
























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

























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