System's Color Palette
-
Hello, I am looking for a way to detect the system's color palette( On XP color quality). This is setup on the Display Properties at the settings tab. I need to know if the computer is running using "16 Color", "255 Color", "16 Bit" and so on. Any ideas?
-
Hello, I am looking for a way to detect the system's color palette( On XP color quality). This is setup on the Display Properties at the settings tab. I need to know if the computer is running using "16 Color", "255 Color", "16 Bit" and so on. Any ideas?
HDC dc = GetDC(NULL);
int nBPP = GetDeviceCaps ( dc, BITSPIXEL );
ReleaseDC(NULL, dc);nBPP holds the number of bits per pixel. --Mike-- Ericahist | CP SearchBar v2.0.2 | Homepage | 1ClickPicGrabber | RightClick-Encrypt Pinky, are you pondering what I'm pondering? I think so Brain, but if we shaved our heads, we'd look like weasels!
-
HDC dc = GetDC(NULL);
int nBPP = GetDeviceCaps ( dc, BITSPIXEL );
ReleaseDC(NULL, dc);nBPP holds the number of bits per pixel. --Mike-- Ericahist | CP SearchBar v2.0.2 | Homepage | 1ClickPicGrabber | RightClick-Encrypt Pinky, are you pondering what I'm pondering? I think so Brain, but if we shaved our heads, we'd look like weasels!