Boost logo

Boost Users :

Subject: [Boost-users] [GIL] Premultiplications when using color_convert
From: Eloi Du Bois (eloi.du.bois_at_[hidden])
Date: 2010-04-12 09:38:21


Hi all,

I am working on rgba32f view that have alpha values of 0.
I need to apply a color_convert but it drops the values because of the 0
alpha valued.
How can I disable alpha premultiplication ?
If impossible, it should be a good idea to give a choice on copy_and_convert
& color_convert.

code sample:
rgb32f_pixel p1, p2;
p1[0] = 1.0f;
p1[3] = 0.0f;
color_convert(p1, p2);
assert(p1[0] == p2[0]);

Thank you by advance,
Eloi Du Bois.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net