bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/69346] New: LinearRGBConverter bug


From: andreykuzmenko at gmail dot com
Subject: [Bug awt/69346] New: LinearRGBConverter bug
Date: Mon, 18 Jan 2016 14:28:05 +0000

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69346

            Bug ID: 69346
           Summary: LinearRGBConverter bug
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: awt
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andreykuzmenko at gmail dot com
  Target Milestone: ---

Hi guys, I think there is a bug in LinearRGBConverter class. In this method:

public float[] toRGB(float[] in);

The following lines:

if (n <= 0.00304f)
  out[i] = in[0] * 12.92f;

Should be:

if (n <= 0.00304f)
  out[i] = n * 12.92f;

(What it does now is propagate Red to all channels at the very low intensity,
which is not noticeable much, but nevertheless is a bug, I think.)

Cheers,
Andrey


reply via email to

[Prev in Thread] Current Thread [Next in Thread]