[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
What's the color space of Microwindows?
From: Aubrey ####@####.#### Date: 21 Feb 2006 06:47:42 +0000 Message-Id: <6d6a94c50602202247x786babecoebc5038011147fcb@mail.gmail.com> Hi all, 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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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: ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |