|
Post by dragonjim on Jun 22, 2013 15:25:58 GMT 1
Hi,
I have a problem working with GDIplus: most of my forms still have the backcolor set to colBtnFace, but, when passed to GDIplus which uses the ARGB colour values, the value $8000000f is converted to $800F0000 (or very dark grey) with half transparency.
Is there any way of finding the RGB value of colBtnFace which can then be converted into ARGB to get around this problem?
Any help would be appreciated.
Just for interest: the Red, Green and Blue values are reversed in ARGB values - e.g. blue in RGB is $FF0000 whilst in ARGB it is $FF0000FF (where the first $FF is the 'Alpha' value).
|
|
|
Post by dragonjim on Jun 24, 2013 21:43:37 GMT 1
Once again...a little thought and I answered my own question:
OpenW 1 Global Int colour = $80000000, n Local a$
For n = 0 To 24 Color colour + n PBox 0, 0, 10, 10 Color 0 Read a$ : Print a$; ": "; Hex(Point(1, 1)); " " KeyGet a$ Next n
Data "Scrollbars","Desktop","ActiveTitleBar","InactiveTitleBar","MenuBar" Data "WindowBackground","WindowFrame","MenuText","WindowText","TitleBarText" Data "ActiveBorder","InactiveBorder","ApplicationWorkSpace","Highlight","HighlightText" Data "ButtonFace","ButtonShadow","GrayText","ButtonText","InactiveCaptionText" Data "3DHighlight","3DDKShadow","3DLight","InfoText","InfoBackground"
|
|