CG 1
CG 1
GRAPHICS
SEMESTER 5
UNIT - 1
HI COLLEGE
SYLLABUS
UNIT - 1
HI COLLEGE
INTRODUCTION TO COMPUTER GRAPHICS,
INTRODUCTION
Computer graphics is the use of computers to create and manipulate visual
images. It is a vast field that encompasses many different techniques, including
2D graphics, 3D graphics: Animation, Rendering, Image processing.
Random scan display, on the other hand, uses a beam of electrons to generate
the image on the screen. This beam is directed over the screen by a magnetic
field and is used to illuminate phosphors on the display. The phosphors emit
light in response to the electron beam, creating the image on the screen.
Random scan displays are also known as vector displays and are commonly
used in older computer systems and specialized graphics applications.
One advantage of random scan displays is that they can draw lines and shapes
more quickly than raster displays. This is because the electron beam can move
more quickly than the method used to update the pixels on a raster display.
However, random scan displays generally have lower resolution and can only
display a limited number of colors.
Random Scan Display
2. Contrast: Contrast refers to the difference between the lightest and darkest
areas of the screen. Displays with higher contrast ratios provide sharper and
more detailed images.
3. Refresh rate: Refresh rate refers to how quickly the display can update the
screen images. Higher refresh rates help to prevent flickering and improve the
fluidity of motion on the screen.
4. Viewing angle: The viewing angle refers to the angle at which the user can
view the screen without significant degradation of image quality. Displays with
wider viewing angles can be viewed from more angles without distortion.
6. Size and aspect ratio: The size and aspect ratio of the display device can
affect how content is presented and perceived. Wider aspect ratios are better
suited for video content, while taller aspect ratios can be better for text-based
content.
Antialiasing techniques can be classified into two types: spatial and temporal.
Spatial antialiasing is applied by altering the spatial position of the pixels,
reducing the resolution, or increasing the sampling rate. Temporal antialiasing
is applied by analyzing several frames of the image and using a motion
estimation process to reduce the temporal variance of the images, which can
cause aliasing artifacts.
2. OLED displays: OLED stands for Organic Light Emitting Diode. OLED displays
are made up of organic materials, which emit light when an electric current is
passed through them. OLED technology is used in modern phones, televisions,
and monitors. OLED displays provide a higher contrast ratio, better color
accuracy, and deeper blacks than LED displays. They are also thinner and more
energy-efficient.
3. Curved LED displays: Curved LED displays are made up of curved LED panels,
which are arranged in a curved shape to create a more immersive viewing
experience. These displays are commonly used in theaters, museums, and other
entertainment venues. The curved display panel helps to reduce reflections,
improve viewing angles, and provide a more natural focal length for the human
eye.
Overall, LED, OLED, and Curved LED displays are advanced technologies that
have revolutionized the display industry. They provide higher brightness,
contrast, color accuracy, and thus offer a more immersive viewing experience.
These displays are increasingly popular for applications ranging from home
entertainment to large-scale advertising.
1. Initialize x and y coordinates to the first endpoint of the line (x1, y1).
2. Calculate the differences between the x and y coordinates of the two
endpoints: dx = x2 - x1 and dy = y2 - y1.
3. Initialize the decision variable, d, to (2 * dy - dx).
4. While x <= x2:
A. Plot the pixel at (x,y).
B. If d > 0, increment y by 1 and update d: d = d + (2 * dy - 2 * dx).
C. Increment x by 1 and update d: d = d + 2 * dy.
5. Repeat step 4 until x = x2.
For example, suppose we want to draw a line from (2,3) to (7,9) using
Bresenham's algorithm. We calculate the differences between the x and y
coordinates of the two endpoints: dx = 7 - 2 = 5 and dy = 9 - 3 = 6. We initialize
the decision variable, d, to (2 * dy - dx) = 9. We start from (2,3) and calculate d for
each x-coordinate in the line as follows:
By the end of this process, we have drawn a line from (2,3) to (7,9) using
Bresenham's algorithm.