Calculating File Sizes (Cambridge (CIE) O Level Computer Science)
Revision Note
Author
Robert HamptonExpertise
Computer Science Content Creator
Calculating File Sizes
How do you calculate the size of a bitmap image?
Calculating the size of a bitmap image can be carried out with either of the following formulas:
Resolution x colour depth
Image width x image height x colour depth
Example
Image Files | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
(Resolution) x (Colour Depth) | |||||||||||||||
|
OR
Image Files | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
(Image width) x (Image height) x (Colour Depth) | ||||||||||||||||||
|
How do you calculate the size of a sound file?
Calculating the size of a sound file is carried out with the following formula:
Sample rate x duration x sample resolution
Example
Sound Files | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
(Sample Rate) x (Duration in seconds) x (Sample Resolution) | |||||||||||||||
|
You've read 0 of your 0 free revision notes
Get unlimited access
to absolutely everything:
- Downloadable PDFs
- Unlimited Revision Notes
- Topic Questions
- Past Papers
- Model Answers
- Videos (Maths and Science)
Did this page help you?