[PyQt] whether a color image can SAFELY be converted to a grayscale image

Philipp A. flying-sheep at web.de
Tue Jan 14 14:23:58 GMT 2014


likely that it’s grayscale to begin with, and only loaded as color pic.

so it doesn’t lose information by converting it into a format that can only
hold grayscale calues.


2014/1/14 iMath <2281570025 at qq.com>

> In the Image Formats part of QImage doc says
> "
> The allGray() and isGrayscale() functions tell whether a color image can
> safely be converted to a grayscale image.
> "
> what does "safely" mean here ?
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140114/351568bd/attachment.html>


More information about the PyQt mailing list