[SDL] help with displaying grayscale buffers

grapesmoker grapesmoker at gmail.com
Mon Apr 14 19:16:43 PDT 2008


Thanks, I'll try that tomorrow.


another james wrote:
> 
> Well, you could try to put just the top 8 bits of that 16 bit number into
> a color statement like this:
> 
> Uint8 gray;
> 
> gray = value >> 8;
> color = SDL_MapRGB(screen->format, gray, gray, gray);
> 
> 
> 
> James.   :o)
> 
> 

-- 
View this message in context: http://www.nabble.com/help-with-displaying-grayscale-buffers-tp16599288p16693739.html
Sent from the SDL mailing list archive at Nabble.com.



More information about the SDL mailing list