CMPS 002 - Computer Literacy

Prof. Paulo Franca

CyberSlug Rules!

Classes

Class Syllabus

Grading Policy

Labs

Interact

Login

  • enter system
  • get attendance
  • submit work
  • take lab quiz
  • check scores

Help

Help me!

Links

Staff only

 

 

 

Datacare   Ahshay

 

Monitor -

  • set of picture elements (pixels) which are colored dots on the screen
  • how many dots?  depends on resolution (horizontal x vertical):
    • 640x480, 800x600, 1024x768, etc.
  • how many bits per pixel? depends on how many different colors you want in a pixel (color depth)
    • black or white
    • 16 colors
    • 256 colors
    • ... millions of colors

how do we represent the screen in the memory?

example in black and white:

What you see ... What is in memory ...
               
               
               
               
               
               
               
               
0 1 1 0 0 0 0 0
1 0 0 1 0 0 0 0
1 0 0 0 0 0 0 0
0 1 1 0 0 0 0 0
0 0 0 1 0 0 0 0
1 0 0 1 0 0 0 0
0 1 1 0 0 0 0 0
0 0 0 0 0 0 0 0

Video board displays the contents of the Video memory (Video Ram)

Video memory contains the color code for each pixel on the screen

How do we represent a color pixel?

Memory represents the intensity of the basic colors (Red,Green,Blue)

Suppose you use 24 bits to represent 1 pixel, 8 bits for each basic color:

How much Red How much Green How much Blue
               
               
               
  • How many possible different colors for each pixel?
  • How many bytes to represent one pixel?
  • How many bytes to represent a screen with 800x600 pixels?
  • What is the color depth in this example?