nanogui: What's the color space of Microwindows?


Previous by date: 21 Feb 2006 22:40:33 +0000 Re: GdLoadImageFromFile: unknown image type, Greg Haerr
Next by date: 21 Feb 2006 22:40:33 +0000 GdLoadimagefrom file error, kiran wesley
Previous in thread: 21 Feb 2006 22:40:33 +0000 What's the color space of Microwindows?, Aubrey
Next in thread:

Subject: Re: [nanogui] What's the color space of Microwindows?
From: "Greg Haerr" ####@####.####
Date: 21 Feb 2006 22:40:33 +0000
Message-Id: <013e01c6371f$13f86e80$e592f90a@censoft.com>

Microwindows always uses the framebuffer's hw format
and draws what's required.  The upper level abstracts this
so that the programmer doesn't have to know what format
the hw framebuffer is.  All colors are always specified
in RGB format, and then re-cast into 1, 4, 8, 16, 24 or
32 bits per pixel.  For your question below, for most
24 bpp hw framebuffers, red would be displayed.

Regards,

Greg

What's the color space of Microwindows?

Is it Red/Green/Blue or Green/Blue/Red or Blue/Green/RED or else?
For example, if I run Microwindows on fb, Do the following codes
output a red pixel or other color?

*(unsigned char *)(fb_base ) = 0xff;
*(unsigned char *)(fb_base +1 ) = 0x00;
*(unsigned char *)(fb_base +2 ) = 0x00;

Is it fixed or can be changed by some parameters?

Thanks
-Aubrey

---------------------------------------------------------------------
To unsubscribe, e-mail: ####@####.####
For additional commands, e-mail: ####@####.####



Previous by date: 21 Feb 2006 22:40:33 +0000 Re: GdLoadImageFromFile: unknown image type, Greg Haerr
Next by date: 21 Feb 2006 22:40:33 +0000 GdLoadimagefrom file error, kiran wesley
Previous in thread: 21 Feb 2006 22:40:33 +0000 What's the color space of Microwindows?, Aubrey
Next in thread:


Powered by ezmlm-browse 0.20.