Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Should RGBA have got 4 arguments constructor?
Should RGBA have got 4 arguments constructor? [message #43080] |
Sat, 03 May 2014 20:59  |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
It seems that RGBA structure hasn't got 4 arguments constructor. So, following code dosen't work:
RGBA rgba(255, 255, 0, 0); // <- alpha, red, green, blue;
BTW, Using IDE "insert color dialog" we can select and create RGBA in above form.
Alternatively we can write:
RGBA rgba = Color(255, 0, 0);
rgba.a = 255;
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Sat, 03 May 2014 21:04] Report message to a moderator
|
|
|
 |
 |
Should RGBA have got 4 arguments constructor?
By: Klugier on Sat, 03 May 2014 20:59
|
 |
|
Re: Should RGBA have got 4 arguments constructor?
By: unodgs on Sat, 03 May 2014 21:44
|
 |
|
Re: Should RGBA have got 4 arguments constructor?
By: mirek on Thu, 29 May 2014 11:18
|
 |
|
Re: Should RGBA have got 4 arguments constructor?
By: mirek on Thu, 29 May 2014 11:32
|
 |
|
Re: Should RGBA have got 4 arguments constructor?
By: Klugier on Thu, 24 July 2014 22:32
|
 |
|
Re: Should RGBA have got 4 arguments constructor?
By: mirek on Fri, 25 July 2014 07:46
|
 |
|
Re: Should RGBA have got 4 arguments constructor?
By: Klugier on Fri, 25 July 2014 20:26
|
 |
|
Re: Should RGBA have got 4 arguments constructor?
By: mirek on Mon, 04 August 2014 14:21
|
 |
|
Re: Should RGBA have got 4 arguments constructor?
By: Klugier on Tue, 05 August 2014 21:25
|
 |
|
Re: Should RGBA have got 4 arguments constructor?
By: mirek on Wed, 06 August 2014 17:56
|
 |
|
Re: Should RGBA have got 4 arguments constructor?
By: Klugier on Sat, 09 August 2014 19:35
|
Goto Forum:
Current Time: Mon May 12 21:14:54 CEST 2025
Total time taken to generate the page: 0.02573 seconds
|