Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Should RGBA have got 4 arguments constructor?
icon5.gif  Should RGBA have got 4 arguments constructor? [message #43080] Sat, 03 May 2014 20:59 Go to previous message
Klugier is currently offline  Klugier
Messages: 1076
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

 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Drawing performance issue
Next Topic: Painter and viewports
Goto Forum:
  


Current Time: Tue Apr 23 12:36:42 CEST 2024

Total time taken to generate the page: 0.02128 seconds