Post Reply 
do not show number of bits
10-03-2024, 07:13 PM (This post was last modified: 10-03-2024 10:41 PM by glfiedler.)
Post: #3
RE: do not show number of bits
Piotr,
Thank you very much for taking the time to respond to me. I always find your answers thoughtful and helpful.
My home settings are always at 32-bit integers. HOWEVER, I also always check the "signed integers by default" checkbox.
When I look at the Bits system variable it is equal to -32 obviously indicating negative values are allowed. As you would expect if I uncheck the box Bits becomes 32.
Since colors codes CANNOT be negative it makes sense that RGB() would use unsigned values and Bits would be 32.
Solved! When using RGB() use unsigned 32-bit integers. As you suggested it is very simple to temporarily save the current Bits value, change Bits to 32 and reset at the end of the program.
Regards,
Jerry
Update: Tried temp saving Bits but I could not reset the Bits to -32 at end. Routine failed. I am assuming since the first line of the routine set Bits to 32 it did not like the -32. I just don't understand the use of that settings checkbox. My program works great with the box unchecked which of course is the same as setting Bits to 32.
What is the purpose of the check box?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
do not show number of bits - glfiedler - 10-02-2024, 09:45 PM
RE: do not show number of bits - komame - 10-03-2024, 04:47 AM
RE: do not show number of bits - glfiedler - 10-03-2024 07:13 PM
RE: do not show number of bits - komame - 10-04-2024, 07:54 PM
RE: do not show number of bits - komame - 10-05-2024, 09:39 AM



User(s) browsing this thread: 1 Guest(s)