[PySide] Does isGrayscale() can tell whether a color image can safely be converted to a grayscale image?

Sean Fisk sean at seanfisk.com
Tue Jan 14 04:09:53 CET 2014


I would presume that if an image only contains gray colors, it can be
safely converted to a grayscale image. Since allGray() and
isGrayscale()indicate the former, that would also mean they indicate
the latter.


--
Sean Fisk


On Sun, Jan 12, 2014 at 6:21 AM, iMath <2281570025 at qq.com> wrote:

> 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.
> "
> but in the doc of there 2 functions indicate they're used to decide
> whether an image is grayscale image ,not mentioned they could be used to
> tell whether a color image can safely be converted to a grayscale image.
>
> what about your opinion ?
>
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/pyside
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20140113/3db135a7/attachment.html>


More information about the PySide mailing list