Calculating File Sizes (Cambridge (CIE) O Level Computer Science)
Revision Note
Written by: Robert Hampton
Reviewed by: James Woodhouse
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) | |||||||||||||||
|
Last updated:
You've read 0 of your 10 free revision notes
Unlock more, it's free!
Did this page help you?