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   |
 |
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
|
|
|
 |
 |
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: Tue May 13 05:07:35 CEST 2025
Total time taken to generate the page: 0.00556 seconds
|