[SDL] Any automatic way to show 32-bit images on a 256 colors PC?
Will Langford
unfies at gmail.com
Thu Jun 7 10:46:37 PDT 2007
If you have a raw 8 bit image with no pal associated with it you'll need to
find a proggy that lets you play with the palette real time, or write an app
that does it.
Ha ha.
-Will
On 6/6/07, Manuel García Cabrera <manugarciac5 at yahoo.com.ar> wrote:
>
> I tried, but I must call SetColors, right? And how can I call set colors
> if I don't know which palette I'll use?
>
> Stephane Marchesin escribió:
> > Manuel García Cabrera wrote:
> >> When I have a 32-bit image on a 16-bit PC, simply calling
> >> SDL_CreateRGBSurfaceFrom (with 32 in its arguments) and then blitting
> it
> >> to my 16-bit screen seems to do the job just fine.
> > Why don't you do the same with 256 colors ? SDL will map to the palette
> > accordingly (it might look bad, but that's what you get at 8bbp anyway
> :).
> >
> > Stephane
> >
> >
> > _______________________________________________
> > SDL mailing list
> > SDL at lists.libsdl.org
> > http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
> >
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070607/06e961c9/attachment.htm
More information about the SDL
mailing list