Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Color Values 0-16,777,215 or 0-4,294,967,295?

Author
Message
roswell
21
Years of Service
User Offline
Joined: 17th Dec 2002
Location: United States
Posted: 2nd Jun 2003 03:00
Playing with all the basic 2D commands, I've made a puzzling discovery. If you run a DOT command with the following parameters, you get white: 100,100,16777215. However, if you use RGB to extract the DWORD color value of white it's 4,294,967,295. Are there two ranges embedded in each command that takes a color value? The color tutorial didn't seem to cover this discrepancy.
/* You are not expected to understand this. */

Dual Athlon 2.0/1GB RAM/GeForce Ti4200-128/Win2000 Pro
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd Jun 2003 01:15
No. What DBPro is doing is adding the alpha component to your colour. This is always set to 255.

As far as drawing to a bitmap is concerned, they are identical.

Login to post a reply

Server time is: 2024-09-20 09:37:01
Your offset time is: 2024-09-20 09:37:01