random scan – Programmerbay https://programmerbay.com A Tech Bay for Tech Savvy Wed, 25 Nov 2020 10:39:25 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 https://programmerbay.com/wp-content/uploads/2019/09/cropped-without-transparent-32x32.jpg random scan – Programmerbay https://programmerbay.com 32 32 Difference between Raster Scan and Random Scan https://programmerbay.com/difference-between-raster-scan-and-random-scan/ https://programmerbay.com/difference-between-raster-scan-and-random-scan/#respond Tue, 15 Sep 2020 16:15:26 +0000 http://programmerbay.com/?p=1193 In Computer Graphics, Raster scan and Random scan are techniques used to render pictures on a screen. Both techniques are different in the manner they use to draw a picture on a monitor.

Random scan is also popularly known as vector display. Let’s see the detailed explanation and what is the difference between the display techniques.

Difference between Raster Scan and Random Scan

BasisRASTER SCANRANDOM SCAN
Picture DefinitionPicture definition is stored as an intensity value which results in it to have less ResolutionIt stores picture definition as a set of line commands which results in high resolution
Electron Beam DirectionThe electron beam is directed from top to bottom and one row at a time on screen, but it is directed towards the entire screenThe electron beam is directed only towards the part of the screen where a picture is required to be drawn
Refresh RateRefresh rate varies from 60 to 80 frame per secondRefresh Rate depends on the number of lines to be displayed i.e 30 to 60 times per second
Picture Definition StoragePicture definition is stored in Refresh Buffer also called Frame BufferPicture definition is stored as a set of line commands called Refresh Display File
Realistic pictureIt can draw realistic pictures as it has the capability to generate different shadesIt can't be used to draw a realistic picture
Image RenderingIt uses pixels in order to render an image or object on to the screenIt uses mathematical equation in order to render an image or object on to the screen
Line DrawingsIt produces Zig-Zag lines as discrete values are plotted
It produces smooth line as CRT beam directly traces line path
CostIt costs less than Random ScanIt costs more than Raster Scan
Interlacing methodIt uses interlacing methodIt doesn't use interlacing method
SuitabilityRaster scan is suitable for generating realistic display of an object and also capable of representing shading and color areasRandom scan is suitable for engineering and scientific graphics and also limited to line drawing applications
DisplayIt is capable of displaying various parts filled with patterns and solid colorsIt can display lines and characters only
ResolutionIt produces pictures of less ResolutionIt produces pictures of high resolution
ExampleTV SetsPen Plotter

Raster Scan

In this method, the electron beam is made to sweep around the screen. It goes from left to right in a row and in this way from top to bottom.

The intensity of the beam is varied to create a pattern of illuminated spots, as it moves across each row. In the era of CRT TVs and monitors, Raster Scan display was mostly employed.

Frame buffer or refresh buffer is used for storing picture definition in the form of a set of intensity values. And these stored value are then plotted on screen in order to generate pictures.

These intensity value can either 0 or 1, having 1 bit per pixel system called bitmap image system.

Random scan and raster scan

There are two terms, Horizontal retrace, and Vertical retrace. In horizontal retrace, the electron beam gets back to the left side of the screen to start with a new fresh line after sweeping through the previous line.

In vertical trace, Electron returns back to top-left of screen display after completing the previous frame.

Advantages

  • It can draw realistic pictures as it has the capability to generate different shades.

Disadvantages

  • It produces a lower resolution picture as compared to random display.
  • It uses greater memory to store picture definition as picture information for the entire screen is stored.

Random Scan

The electron beam is made to point only towards the parts of the screen where the picture is to be drawn. It is also known as vector display, stroke-writing display, or calligraphic display as it produces a picture one line at a time.

Refresh display file or refresh buffer is a memory area which is responsible for storing picture definition as a set of line drawing commands.

Refresh rate in this kind of display depends on the number of lines to be plotted on the screen.

These commands are then processed by the system, stored in the refresh display file. And after processing all the line drawing commands, the system goes all the way back to the first-line command in the list.

For example, If one wants to draw a rectangle, then the commands stored like this,
Draw a line A to B
Draw a line B to C
Draw a line C to D
and line D to A,
and after drawing all the lines, the system would go back to the first line.

Random scan and raster scan 2

Advantages

  • It produces a higher resolution picture as compared to raster display.
  • It produces a smooth line
  • It uses less memory to store picture information whose picture to be drawn instead storing information of entire screen

Disadvantages

  • It can’t be used to draw a realistic picture.
  • It has a limited number of colours that also depends how beam made to hit on the phosphor layer

]]>
https://programmerbay.com/difference-between-raster-scan-and-random-scan/feed/ 0