su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 04 May 2012 10:42 AM |
So.. A text file with one character uses 8 bits to store the ascii value of it.
So my logic is failing right here..
Say, we have a picture with 2x2 pixels. For one pixel we would use 3 bytes (3*8 bits) Since a value for red, green and blue.. So total pixels = 4 4*bytes in one pixel= 4*3 So it would be 12 bytes.. But it isn't Why so? I don't see why it'd need to store more than 3 bytes per pixel qq |
|
|
| Report Abuse |
|
|
|
| 04 May 2012 10:57 AM |
| It'd also need to store the position of the pixels? I don't know. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 04 May 2012 10:59 AM |
| Well .. Not so because it can store those in the order that they're in |
|
|
| Report Abuse |
|
|
|
| 05 May 2012 12:04 PM |
| You're forgetting alpha channels |
|
|
| Report Abuse |
|
|
|
| 05 May 2012 12:05 PM |
| Also file headers, footers, data about the image, etc |
|
|
| Report Abuse |
|
|
|
| 05 May 2012 12:10 PM |
| You forgot about metadata. |
|
|
| Report Abuse |
|
|
|
| 05 May 2012 12:16 PM |
And (optional) compression, if possible. There could be a bool for that (in a number, for that I mean: false=0,true=1) @trappingnoobs, Alpha channel is optional, depends if it's going to be transparent (like PNG) or not (like JPEG). @RATEXmegaGAMER, No, pixels are in order.
~ ROBERT00001 ~ ~(ಠωಠ)~ |
|
|
| Report Abuse |
|
|