Beruflich Dokumente
Kultur Dokumente
Sound and other analog data is generally represented as a transverse wave, and
can be converted to digital form by a process called sampling. The two
important aspects of sampling are:
• Sampling size refers to the number of bits used to store each sample
from the analog wave. For example, an 8-bit sample can be represented
256 (28 = 256) possible levels in a particular sample. A higher sample size
will result in increased accuracy, but higher data storage requirements.
• Sampling Rate refers to the number of samples or slices taken from the
analog wave in one second. The higher the sampling rate, the better the
representation of the initial analog signal. If CD Audio quality is required
then a sampling rate of 44.1 KHz (44,100 samples per second) is chosen.
Angga Wijaya
Calculating Image File Sizes
The relationship between the number of displayable colours and bit depth
1 2 Colours = 21 = 2
2 4 22 = 4
3 8 23 = 8
4 16 24 = 16
8 256 28 = 256
Both screen resolution and the number of displayable colours depend upon the
size of the frame buffer. The display colours every pixel on the screen is stored
in the frame buffer. If you know the number of pixels in an image and the
number of colours in an image, then you can calculate the size of the frame
buffer that will be needed to display it.
Step 1: Calculate the number of the pixels in the image – multiply the two
resolution figures together.
Step 2: Calculate the number of bits in the image – multiply the pixels by the bit
depth.
Step 3: calculate the number of bytes in the image – divide the number of bits
by 8 (there are 8 bits in a byte).
Step 4: Calculate the number of kilobytes in the image – divide the number of
bytes by 1024 (there are 1024 bytes in a kilobyte).
The size of the frame buffer = (800 x 600 x 24) ÷ (8 x 1024) = 1406 KB
(rounded to the nearest whole number)
Angga Wijaya
Step 5: Calculate the number of megabytes in the image – divide the number of
kilobytes by 1024 (there are 1024 kilobytes in a megabyte)
Angga Wijaya