Mail Archives: djgpp/1997/05/30/08:38:40
On Thu, 29 May 1997, Regis BOSSUT wrote:
> Thomas Knudsen wrote:
>
> > When using GRX20 in 256 color mode to display a pseudo-colored bitmap
> > image, I start by loading a pallette like this:
>
> > for(i=0; i<256; i++) GrSetColor(i, r[i], g[i], b[i]);
>
> > then I display the image on the screen. However, if I later try to change
> > the pallette (to enable some interactive contrast stretching), nothing
> > happens.
>
> Isn't there a GrRefreshColors() subroutine available for that purpose ?
> I don't have the source code here but it should be the answer...
>
Unfortunately not: GrRefreshColors will reload the original pallette, and
is intended for use in a "restore" process after direct register
manipulation.
--
Thomas Knudsen | www: http://www.gfy.ku.dk/~tk/
National Survey and Cadastre - Denmark | e-mail: tk AT gfy DOT ku DOT dk
Geodetic office, Rentemestervej 8 | Direct Phone: +45 35 87 52 64
DK-2400 Copenhagen NV, Denmark | FAX: +45 35 87 50 52
- Raw text -