Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Detecting color depth-16 color, 256 color, or 32 bit color
#1
I am changing all of my libraries to be agnostic to color depth...or at least trying.  I want them to automatically detect whether we are in 16 color, 256 color, or 32 bit color mode and automatically make adjustments on the fly to compensate for the colors being used, and use the proper colors.

So far so good, EXCEPT that I am having an issue with accurately detecting whether we are in 16 color, 256 color, or 32 bit color.

I cannot find this as a command for QB64.  Is there an easy way to accurately detect this?
Reply


Messages In This Thread
Detecting color depth-16 color, 256 color, or 32 bit color - by dano - 08-16-2024, 12:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question using $color:32 colour names mid-program? hskakw 2 207 01-14-2026, 09:30 AM
Last Post: hskakw
Question Latest version of QB64PE or QB64 compatible with Windows XP (32-bit)? madscijr 14 2,000 09-30-2025, 08:10 AM
Last Post: hsiangch_ong
  Test to post a new Thread + question 32 or 64 bit Rudy M 2 541 09-09-2025, 04:10 PM
Last Post: Rudy M
  useful page: Value of constants for the Windows 32-bit API madscijr 4 684 08-15-2025, 06:35 PM
Last Post: SMcNeill
  _CLEARCOLOR evety color EXCEPT ...? madscijr 4 849 04-27-2025, 10:51 PM
Last Post: TempodiBasic

Forum Jump:


Users browsing this thread: 1 Guest(s)