GreycLab / CImg

The CImg Library is a small and open-source C++ toolkit for image processing
http://cimg.eu
Other
1.46k stars 278 forks source link

Is this library uses RGBA32 or RGBA32 Premultiplied Or ARGB32 pixel format for 4 channel images? #375

Closed 88aleksandr88 closed 1 year ago

88aleksandr88 commented 1 year ago

QImage out = img; cimg_library::CImg<uint8_t> img_c(out.bits(), out.width(), out.height(), 1, 4, false);

img_c assumes that out.bits() in RGBA32 or RGBA32 Premultiplied format or ARGB32?

How to convert uint32_t pixel (4 bytes RGBA pixel) to cimg_library::CImg or cimg_library::CImg ?

devernay commented 1 year ago

short answer: everything is unpremultiplied here

88aleksandr88 commented 1 year ago

Thank you, devernay.