Color depth ??

This is a discussion on Color depth ?? within the Game Programming forums, part of the General Programming Boards category; Hi: if a bitmap is in 24 bits, then 2^8 for each R,G,B right? but for 32 bits? where does ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    173

    Color depth ??

    Hi:

    if a bitmap is in 24 bits, then 2^8 for each R,G,B right?
    but for 32 bits? where does 8 bits come from, the max bits for RGB is 2^24 bits. anyone would explain it?
    Thanx
    Last edited by SuperNewbie; 02-01-2003 at 07:40 AM.
    Don't laugh at me,I am just a SuperNewbie.

  2. #2
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    24 bit has 8 bits for channels R, G, and B. 32 bit also has 8 bits per channel, but it has a fourth channel called the alpha channel.

  3. #3
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    The extra bits can contain many things: translucency, z-order, collision data or nothing
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  4. #4
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    >The extra bits can contain many things: translucency, z-order, collision data or nothing

    unless otherwise stated it's nearly always alpha
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  5. #5
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    it could even make 10 bit per channel. Pad the last two to fill up the rest of the byte.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21