New Graphic Note
New Graphic Note
The pixel size is about 0.2 x 0.2mm on conventional displays or even smaller on
high-resolution displays. A typical screen size is about 1024 x 768 pixels.
What is PPI resolution? Pixels per inch (PPI) resolutions refers to the number of pixels
(dots) contained within each inch of a digital image. (1 inch = 25.4mm). Generally
speaking, the higher the PPI, the better the image quality.
The number of bits represent for each pixel color is called color depth or bit depth. If
the color depth of an image is 8-bit, the image contains 256 colors. The most common
color depths you see are 8-bit(2⁸ = 256 colors), 16-bit (2¹⁶ = 65,536 colors) and 24-
bit(2²⁴ = 16.7 million colors).
For example, for an image that uses 4 colors(2² = 4), 2 bits(color depth is 2-bit) are
needed for each pixel. So, in this case, we can have, 00-white; 01-black; 10-yellow; 11-
blue. Similarly, for a color depth of 3, we have 8 colors and we can have, 000-white;
001-black; 010-yellow; 110-blue;
How are pictures actually stored and displayed?
Each screen pixel is represented by a binary value corresponding to a particular entry
in a two-dimensional array residing in memory. This memory is called a frame buffer or
a bit map.
These 0’s and 1’s will be read by display controller one line at a time and sent to the
screen after converting them from digital to analog. The display controller reads the
contents of frame buffer one line at a time or entire digits at time.
The contents of the framebuffer is what is
ultimately transferred to and seen on the
physical display. Therefore it is very common to
have the same pixel width and height of the
framebuffer and the display.
Frame buffer
Each screen pixel corresponding to a particular entry in a two-dimensional array
residing in memory. This memory is called a frame buffer or a bit map.
A cathode ray tube (CRT) is a specialized vacuum tube in which images are produced
when an electron beam strikes a phosphorescent surface.
In other Words, the CRT generates the beams, accelerates it at high velocity and
deflect it for creating the images on the phosphorous screen so that the beam
becomes visible.
Most desktop computer displays make use of CRT for image displaying purposes.
Construction of a CRT
It is composed of three main components: an electron gun that emits a stream of
electrons, a deflection system that controls the direction of the electrons, and a
phosphorescent screen that emits light when struck by electrons.
The electron gun consists of a cathode, a heated filament that emits electrons, and a
grid that controls the flow of electrons.
The heat is supplied to the cathode (by passing current through the filament). This way
the electrons get heated up and start getting ejected out of the cathode filament. This
stream of negatively charged electrons is accelerated towards the phosphor screen by
supplying a high positive voltage. This acceleration is generally produced by means of
an accelerating anode.
Next component is the Focusing System, which is used to force the electron beam to
converge to small spot on the screen. If there will not be any focusing system, the
electrons will be scattered because of their own repulsions and hence we won’t get a
sharp image of the object.
Construction of a CRT
The electron beam is directed towards the screen by a deflection system, which uses
electric and magnetic fields to control the path of the electrons. When the **electron
**beam hits the phosphorescent screen, it causes the screen to emit light at the point
of impact, creating a bright dot on the screen.
Construction of a CRT
A cylindrical metal over the cathode is called the Control grid. It is used to control the
intensity of the electron beam by changing its voltage level.
The focusing system is used to converge the electron beam to focus on a small spot
when it sticks the phosphor screen.
Different kinds of phosphors are used in a CRT. The difference is based upon the time
for how long the phosphor continues to emit light after the CRT beam has been
removed. This property is referred to as Persistence.
Types of Deflection:
Cathode Ray Tubes (CRTs) utilize deflection systems to control the path of the electron
beam, enabling precise positioning on the screen. There are two primary types of
deflection systems: electrostatic and magnetic.
Electrostatic Deflection: The electron beam (cathode rays) passes through a highly
positively charged metal cylinder called deflection plates, an electric field is established
between them. As the electron beam passes through this field, it experiences a force
perpendicular to its initial direction, causing it to deflect.
A voltage applied across the Vertical
Plates will deflect the electron beam
vertically. A voltage applied across
the Horizontal Plates will deflect the
electron beam horizontally.
Types of Deflection:
Magnetic Deflection: Current flows through coils positioned around the CRT neck,
generating magnetic fields. According to the Lorentz force law, a moving electron in a
magnetic field experiences a force perpendicular to both its velocity and the magnetic
field direction, resulting in beam deflection.
In a CRT with magnetic
deflection, instead of two pairs of
deflection plates inside the CRT,
there are two pairs of deflection
coils mounted around the neck.
Types of Deflection:
1. Electrostatic Deflection: The electron beam (cathode rays) passes through a highly
positively charged metal cylinder that forms an electrostatic lens. This electrostatic
lens focuses the cathode rays to the center of the screen in the same way like an
optical lens focuses the beam of light. Two pairs of parallel plates are mounted inside
the CRT tube.
Slope-Intercept Line Equation
Line Equation is defined as:
y=mx+b
Where m is the slope of the line, and defined as the
change in y values divided by the change in x
values:
Yend – Ystart
m=
Xend – Xstart
b is the y-intercept. Recall that the y-intercept is the
line’s y value when x equals zero.
For example, the line defined by equation y=5x+3
the y-intercept is b=3. Substitute zero into the equation to get y=3 16
Slope-Intercept Line Equation
The y-intercept can be calculated by the following
equation in terms of the coordinate of the starting
points.
b = Ystart – m Xstart
The y-intercept can also be calculated by the
following equation in terms of the coordinate of the
ending points.
b = Yend – m Xend
17
Simple DDA Line Drawing Algorithm
We will use the simple DDA algorithm to draw a line with
starting point (2,0) and ending point (7,4) on a pixel based
display. Firstly, we compute the slope m:
m =(Yend–Ystart)/(Xend–Xstart)=(4–0)/(7–2)=4/5 = 0.8
y = Ystart = 0 x = Xstart + 1 = 2 + 1 =3
x y Round(y)
2 0
3 y = y + m = 0 + 0.8=0.8 1
4 y = y + m = 0.8 + 0.8=1.6 2
5 y = y + m = 1.6 + 0.8=2.4 2
6 y = y + m = 2.4 + 0.8=3.2 3
7 4
18
• The Cartesian slope intercept eqn for straight
line is y = m x + b (1)
Types of Transformations
Types of Transformations
Figure show the translation and Mathematically this can be represented as:
Let us assume that the original coordinates are (X, Y), the scaling factors
are (SX, SY), and the produced coordinates are (X’, Y’). This can be
mathematically represented as shown below; X' = X . SX and Y' = Y . SY
We’ve taken three measurements from this box: length 20 cm, width 10
cm, and height 15 cm.
Reduced storage costs: Data reduction can help to reduce the storage
costs associated with large datasets by reducing the size of the data.
Aspect Ratio
Simply put, aspect ratio is the ratio of the width to the height of an image
or video frame measured in unit length or number of pixels. Represented as
two numbers separated by a colon, it determines the shape of the display
area.
For instance, a 4:3 aspect ratio means the width is four units, and the
height is three units. The primary unit of measurement for aspect ratios is
pixels, but they can be measured in other units such as feet, meters, LED
panels, or square (1:1) widgets.
Difference between Raster and Vector Graphics
What is OCR (Optical Character Recognition)?
What is simulations
What is animation
2. Compute the size of a 640 X 480 image at 240 pixels per inch.
3. Compute the resolution a 2 X 2 inch image that has 512 X 512 pixels