Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

24bit, and Indexed colors...

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 Syntax   Members   

122
Like
Likes
Like

Posted 23 August 1999 - 09:24 AM

How do i display a image such as a PCX we will say, in true color..how would I go about taking the palette and converting it to true color if any conversion is even needed...

------------------
E-mail with questions, comments, and retorts.


#2 FlyFire   Members   

122
Like
Likes
Like

Posted 23 August 1999 - 09:24 AM

Don't forget, that in true color, red, green and blue values is 8bit, and in normal VGA palette, all rgb values represented as 6bit values. So you'll need to multiply each color value by 4 (or <<2) and then pack them into resulting 24bit or 32bit colour.

FlyFire/CodeX
http://codexorg.webjump.com





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.