Sign in to follow this  
Followers 0
UQOII

Choose color

3 posts in this topic

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]

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

Thank you

[center]uqoii.nl[/center]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0