Graphics And Compression Flashcards
Bit Mapped Graphics
Resolution of VDU screen = no. of pixels per row X no. pixels per column
——————————
Resolution = Dpi
Colour Depth
- number of bits per pixel
Monochrome - 1 bit each for black and white ,
12 bit colour - 4096 colours
True colour - 8 bits for each R G and B
16777216 colours
32 bit colour
Extra 8 bits used for alpha channel - transparency
Image size
Bits per colour * number of pixels
Metadata
Data about data
- date it was created
- width and height in pixels
- colour depth
- gps co ords where photo taken
Data compression
Reducing number of bits required to represent data to reduce storage requirements or to transmit files more quickly
Lossless
File can be uncompressed , original quality of image can be restored
Lossy
Some of original image lost forever , smaller file size
Run Length Encoding
If 3 or more consecutive cells contain same colour , run of cells can be encoded into 2 bytes
First byte stores number of contiguous cells in run and second store the colour code