delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/28/14:37:28

From: Chris Miller <massmedia AT mcn DOT net>
Newsgroups: comp.os.msdos.djgpp,rec.games.programmer,comp.graphics.algorithms
Subject: Re: Palette Conversion
Date: Thu, 28 Aug 1997 04:11:12 -1000
Organization: Critical Mass Media
Lines: 18
Message-ID: <34058700.7BFE@mcn.net>
References: <33c070c8 DOT 0 AT duster DOT adelaide DOT on DOT net> <5ps14f$srr AT barf DOT euro DOT net>
Reply-To: massmedia AT mcn DOT net
NNTP-Posting-Host: gfpm01-046.mcn.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Benny wrote:
> 
> Richard Sim wrote:
> >
> I'm having a little problem - I've made a palette for my game but I need to
> convert the palette to a palette type that Paint Shop Pro or Photoshop can load.

> So -- has anyone got a conversion utility for these palettes or could
> anyone help, thanks.

I just dealt with the same problem...  I'm using Photoshop 4 and 768
byte palette files. I figured out that photoshop uses 8 bit values for
it's colors and the vga uses 5 bit values.  Just load the bytes,
multiply them by 8 (or shift them by 3 bits... byte<<3) and then write
them out with a photoshop palette extension.

Later,
  Chris Miller

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019