delorie.com/archives/browse.cgi | search |
From: | Adam Pierce <adamp AT nospam DOT magna DOT com DOT au> |
Newsgroups: | comp.os.msdos.djgpp,rec.games.programmer,comp.graphics.algorithms |
Subject: | Re: Palette Conversion |
Date: | Wed, 09 Jul 1997 13:00:27 +1000 |
Organization: | Magna Data Internet Solutions |
Lines: | 28 |
Message-ID: | <33C2FECB.7B64@nospam.magna.com.au> |
References: | <33c070c8 DOT 0 AT duster DOT adelaide DOT on DOT net> <33C2A2FD DOT 446B AT CS DOT ColoState DOT edu> |
Reply-To: | adamp AT nospam DOT magna DOT com DOT au |
NNTP-Posting-Host: | adamp.magna.com.au |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
SerDevian 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. Converting to Photoshop .ACT format is easy, It's just a series of three-byte colour values for however many colours you are using. You could just write a couple of lines of code to dump your palette raw to this sort of file. eg. if you are in 256 colours, the file will be 768 bytes long and the contents will just be RGBRGBRGBRGBRGBRGBRGBRGBRGBRGB... -- * Remove the *nospam* from my address for replies * __ __ _______ __/ \____________________________________/ \__ _______ \_____ | \ o \ Adam Pierce / o / | _____/ \___ | \ o \________________________________/ o / | ___/ \__|____\ o adamp AT magna DOT com DOT au o /____|__/ \__\____________________________________/__/ ~~~~~~~~~~~\____________/~~~~~~~~~~~ \______/ \/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |