I am rewriting a VB6 program in C# and the VB program uses the QBColor function
At http://msdn.microsoft.com/en-us/library/d2dz8078(v=VS.80).aspx it states which number is equal to which colour.
Furthermore, on http://msdn.microsoft.com/en-us/library/zc1dyw8b(v=VS.80).aspx it says that Blue (according to Microsoft) is 0,0,255 (no objection really). But what is the then the difference between Blue and LightBlue?
Those two pages can not mean the same colour when they talk about blue?
Does anyone have the RGB translation table of the colours for QBColor? I would suspect that
QBColor(1) Blue is equal to RGB(0,0,128)
QBColor(9) LightBlue is equal to RGB(0,0,255)
You’re correct. Blue is (0,0,128).
Here is the code to go from QBColor to RGB:
Dim Color As Integer
Color = 1
Console.WriteLine(&HFF& And QBColor(Color))
Console.WriteLine((&HFF00& And QBColor(Color)) \ 256)
Console.WriteLine((&HFF0000 And QBColor(Color)) \ 65536)
You can easily put it in a loop to check all the values.