0

I'm confused about image resolution. In my project sizeof returns 4. It means that between one and the next pixel address is a 4 bytes. In other words i have RGBA format, 1 byte for each component? is it right? When i call CGImageGetBitsPerComponent i get 8 bits (1 byte for component). But when i call CGImageGetBitsPerPixel i get 8 bits. Why? I thought bitsPerPixel = (count of components) * bitsPerComponent and this is equal to 4 bytes. How do I get 8 bits instead of 4 bytes? Please tell me someone. Thanks

user2032083
  • 313
  • 2
  • 4
  • 14

0 Answers0