Jump to content

Recommended Posts

Posted

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]

Posted

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

Posted

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]

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...