[Interest] 回复: Does isGrayscale() can tell whether a color imagecan safely be converted to a grayscale image?

Constantin Makshin cmakshin at gmail.com
Sat Jan 11 10:56:57 CET 2014


Well, then you have a choice:
1) look at the source code of these methods;
2) implement the coversion safety check yourself, the one discussed in this
this thread is quite trivial.
:-)
On Jan 11, 2014 1:48 PM, "iMath" <2281570025 at qq.com> wrote:

> but I think the fact is that  "they could be used to tell whether a color
> image can safely be converted to a grayscale image."
>
>
> ------------------ 原始邮件 ------------------
> *发件人:* "Constantin Makshin";<cmakshin at gmail.com>;
> *发送时间:* 2014年1月11日(星期六) 下午5:27
> *收件人:* "Qt Interest"<interest at qt-project.org>;
> *主题:* Re: [Interest] Does isGrayscale() can tell whether a color imagecan
> safely be converted to a grayscale image?
>
> My opinion is that there's no need for those methods descriptions to
> duplicate information already provided in the class documentation.
> On Jan 11, 2014 12:27 PM, "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 ?
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140111/d4a9d549/attachment.html>


More information about the Interest mailing list