UQOII Posted May 7, 2008 Share Posted May 7, 2008 If i want to set a color for pen ( _GDIPlus_PenSetColor($hPen, $iARGB) ) i need a ARGB (Alpha, Red, Green and Blue) with _choosecolor i can get only RGB how do i get A ? [center]uqoii.nl[/center] Link to comment Share on other sites More sharing options...
smashly Posted May 7, 2008 Share Posted May 7, 2008 Hi, You can use the default value for alpha, 0xFF then append the RGB after it. The way I was doing it: $RGB = _ChooseColor(2) $ARGB = StringReplace($RGB, "0x", "0xFF") Cheers Link to comment Share on other sites More sharing options...
UQOII Posted May 7, 2008 Author Share Posted May 7, 2008 Hi,You can use the default value for alpha, 0xFF then append the RGB after it.The way I was doing it:$RGB = _ChooseColor(2)$ARGB = StringReplace($RGB, "0x", "0xFF") CheersThank you [center]uqoii.nl[/center] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now