Korittke
Member!
slyfie double posted by accident.
generally a comp image consists of pixels. every of these pixels contains color information (in basics). color information is made up in the RGB format, which means red green blue. a whole bunch of colors can actually be made out of only mixing red green and blue. so all of these 3 variables have one value set between 0 and 255. that is 1 byte.now in uncompressed format, i.e. BMP, every pixel color information is stored seperately. so you have to imagine the file structure like this:
pixel 1;1: Red: 124, Blue:056, Green:000
pixel 1;2: Red: 124, Blue:056, Green:000
and so on...
That's 3x1 byte = 3byte; for each pixel
now if your pic is 500x20 pixels, that is 10000 pixels. 10.000 pixels, each 3 byte is 30.000 byte. no matter if everythings black or if its very colorful. compression is a whole different thing and a lot more complicated. you can read about it on the net though, JPEG compression is open source and available to all aswell as information about how it works.
generally a comp image consists of pixels. every of these pixels contains color information (in basics). color information is made up in the RGB format, which means red green blue. a whole bunch of colors can actually be made out of only mixing red green and blue. so all of these 3 variables have one value set between 0 and 255. that is 1 byte.now in uncompressed format, i.e. BMP, every pixel color information is stored seperately. so you have to imagine the file structure like this:
pixel 1;1: Red: 124, Blue:056, Green:000
pixel 1;2: Red: 124, Blue:056, Green:000
and so on...
That's 3x1 byte = 3byte; for each pixel
now if your pic is 500x20 pixels, that is 10000 pixels. 10.000 pixels, each 3 byte is 30.000 byte. no matter if everythings black or if its very colorful. compression is a whole different thing and a lot more complicated. you can read about it on the net though, JPEG compression is open source and available to all aswell as information about how it works.