Showing posts with label Graphics. Show all posts
Showing posts with label Graphics. Show all posts


A C++ language program for line drawing using Bresenham's Line Algorithm.

#include<iostream.h>
#include <conio.h>
#include<graphics.h>

void main()
{
int d=DETECT,g;
initgraph(&d,&g,"c://tc//bgi");
clrscr();
int x,y,x1,y1,x2,y2,dx,dy,c1,c2,p,color=1;
cout<<"enter points x1,y1,x2,y2";
cin>>x1>>y1>>x2>>y2;
clrscr();
Posted by Unknown On Thursday, June 06, 2013 1 comment READ FULL POST

A C++ language program for line drawing using Bresenham's Line Algorithm.

#include<iostream.h>
#include <conio.h>
#include<graphics.h>

void main()
{
int d=DETECT,g;
initgraph(&d,&g,"c://tc//bgi");
clrscr();
int x,y,x1,y1,x2,y2,dx,dy,c1,c2,p,color=1;
cout<<"enter points x1,y1,x2,y2";
cin>>x1>>y1>>x2>>y2;
clrscr();
Posted by Unknown On Sunday, June 02, 2013 1 comment READ FULL POST

CSE5280 Computer Graphics
Chapter #2 Solutions

2-1 List the operating characteristics for the following display technologies: raster refresh systems, vector refresh systems, plasma panels, and LCD's.
answer: Read Sections 2-1 through sections 2-3 in your textbook. From reading, basically, you need to understand the following concepts in these sections. These include, refresh systems, frame (display) buffer, raster displays, resolution, refresh display files, passive matrix, active matrix, and run-length encoding.
2-4 Consider two raster systems with the resolutions of 640x480, 1280x1024, and 2560x2048.
a) What size frame buffer (in butes) is needed for each of these systems to store 12 bits/pixel? How much storage is required for each system if 24 bits per pixel are to be stored?
Frame-buffer size for each of the systems is
640 × 480 × 12 bits ÷ 8 bits per byte = 450 KB
1280 × 1024 × 12 bits ÷ 8 bits per byte = 1920 KB
2560 × 2048 × 12 bits ÷ 8 bits per byte = 7680 KB
For 24 bits of storage per pixel, each of the above values is doubled.

Posted by Unknown On Saturday, May 18, 2013 No comments READ FULL POST


1-List the operating characteristics for the following display technologies: Raster refresh systems, vector refresh systems, plasma panels and LCDs.

Raster Refresh systems:
Electron beam is swept across the screen, one row at time, from top to bottom. Each row is referred to as a scan line. As the electron beam moves across a scan line, the beam intensity turns on and off to create a pattern of illuminated spots.
Vector Refresh Systems:
The system cycles through the set of commands in the display file, drawing each component line in turn. After all line drawing commands have been processed, the system cycles back to the first command in the list.
Plasma Panels:
Constructed by filling the region between two glass panels with a mixture of gases that usually includes neon, a series of vertical conducting ribbons is placed on one gas panel and a set of horizontal conducting ribbons is built into the other glass panel.
LCDs:
Operating by producing a picture by passing polarized light from the surroundings or from an internal light source through a liquid-crystal material that can be aligned to either block or transmit the light.

Posted by Unknown On Saturday, May 18, 2013 2 comments READ FULL POST

Some answers of qustions in P.82,P.83


2-1) List the operating characteristics for the following display technologies: raster refresh systems, vector refresh systems, plasma panels, and LCDs.


1)Raster Refresh system: in which the electronic beam makes the screen a number of lines, and draw each one and this is called (scan lines) and the picture is refreshed every interval of time from the refresh buffer " frame buffer".
It's characteristics.
a)The pixels in the screen aren't related. b)Fast in loading image. c)when magnifying, the quality of the screen decreases.
2)Vector Refresh system: a)The pixels in the screen are related by function ex: function of lines. b)slow in loading because t need some processing in its function. c)when magnifying the quality of the image is increase.
3)Plasma panels: a)new technology (10/1/2005). b)the screen is divided into little small cells. c)have high resolution although the screen size may be small.
Posted by Unknown On Saturday, May 18, 2013 3 comments READ FULL POST
  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube

Like us

    as

    Contact Form

    Name

    Email *

    Message *