UQOII Posted May 7, 2008 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]
smashly Posted May 7, 2008 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
UQOII Posted May 7, 2008 Author 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]
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