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?
Re: Should RGBA have got 4 arguments constructor? [message #43455 is a reply to message #43454] Tue, 05 August 2014 21:25 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1099
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello Mirek,

Quote:

Google "premultiplied alpha". I guess that alone is a reason not to rush to have constructor....


If you are sure about not to adding constructor to RGBA class. I will not protest, but personally I think that RGBA constructor will be nice feature for common Upp user. I would like to notice that maybe simply conversion in constructor do the trick (This is your original proposition).

Quote:

I am not quite sure what you want to unittest about RGBA. But surely, it would be nice addition to have some RGBA *related* unittests, there is a couple of functions in Draw and in fact all Image processing is RGBA...


I mean if "premultiplied alpha" is Upp related issue it would be nice to have unittest for this. It will always remind us that something is wrong in this part of code. But if it isn't...

P.S.
I think that unit tests is good idea, but it drags additional cost in the form of time (writing tests) and tools that will execute this test periodically.

Sincerely,
Klugier


U++ - one framework to rule them all.

[Updated on: Tue, 05 August 2014 21:28]

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 May 13 05:07:35 CEST 2025

Total time taken to generate the page: 0.00556 seconds