Representation of Graphics and Sounds

Representation of Graphics and Sounds

Representation of Graphics

  • Bitmap images are used to represent detailed graphics. They are made up of tiny coloured squares called pixels.
  • Each pixel has a specific location and it has an associated colour value.
  • The more pixels used in an image, the higher its resolution. High-resolution images provide more detail but need more storage space.
  • Colour depth is the number of bits used to represent the colour of each pixel. Greater colour depth allows for a wider range of colours but requires more storage space.
  • Metadata is used in image files to store extra information about the image such as its dimensions (width and height in pixels), colour depth, and file format.
  • Vector graphics use geometric shapes like lines, curves, and polygons to represent images. They take up less storage space and can be scaled without losing quality, which makes them more suitable for logos and designs.

Representation of Sound

  • Sound is represented digitally as audio data. This is based on a sampled waveform.
  • Sampling rate is the frequency at which a sound waveform is sampled to create a digital representation. Higher sampling rates produce a higher quality sound but require more storage space.
  • In audio files, the bit depth represents the accuracy of each sample. More bits equates to more accurate samples but increases file size.
  • Compression is used to reduce the file size of audio files without significantly reducing their quality. There are two types of compression: lossless (which does not lose data) and lossy (which does lose data).
  • Metadata is used in audio files to store extra information about the sound, such as its bit depth, sampling rate, and duration.