https://issues.apache.org/bugzilla/show_bug.cgi?id=53274

          Priority: P2
            Bug ID: 53274
          Assignee: [email protected]
           Summary: XSSFColor.getRgbWithTint() return white color for
                    black and vice versa
          Severity: normal
    Classification: Unclassified
          Reporter: [email protected]
          Hardware: PC
            Status: NEW
           Version: 3.8
         Component: XSSF
           Product: POI

ctColor.getRgb() returns the white instead of black and the black instead of
white. In getRgb() this issue is fixed.

Patch:

public byte[] getRgbWithTint() {
        byte[] rgb = getRgb();
        double tint = ctColor.getTint();
        if (rgb != null && tint != 0) {
            for (int i = 0; i < rgb.length; i++){
                rgb[i] = applyTint(rgb[i] & 0xFF, tint);
            }
        }
        return rgb;
    }

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to