Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions java/src/main/java/com/genexus/reports/PDFReportPDFBox.java
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ public void GxDrawRect(int left, int top, int right, int bottom, int pen, int fo

if (cornerRadioBL == 0 && cornerRadioBR == 0 && cornerRadioTL == 0 && cornerRadioTR == 0 && styleBottom == 0 && styleLeft == 0 && styleRight == 0 && styleTop == 0) {
if (pen > 0)
cb.setStrokingColor(foreRed, foreGreen, foreBlue);
cb.setStrokingColor(foreRed / 255f, foreGreen / 255f, foreBlue / 255f);
else
cb.setStrokingColor(backRed, backGreen, backBlue);
cb.setStrokingColor(backRed / 255f, backGreen / 255f, backBlue / 255f);

cb.addRect(x1, y1, x2 - x1, y2 - y1);

Expand Down Expand Up @@ -278,7 +278,7 @@ public void GxDrawRect(int left, int top, int right, int bottom, int pen, int fo
cRadioBR = Math.max(0, Math.min(cRadioBR, max / 2));

if (backMode != 0) {
cb.setStrokingColor(backRed, backGreen, backBlue);
cb.setStrokingColor(backRed / 255f, backGreen / 255f, backBlue / 255f);
cb.setLineWidth(0);
roundRectangle(cb, x1, y1, w, h,
cRadioTL, cRadioTR,
Expand All @@ -288,7 +288,7 @@ public void GxDrawRect(int left, int top, int right, int bottom, int pen, int fo
cb.setLineWidth(penAux);
}
if (pen > 0) {
cb.setStrokingColor(foreRed, foreGreen, foreBlue);
cb.setStrokingColor(foreRed / 255f, foreGreen / 255f, foreBlue / 255f);
drawRectangle(cb, x1, y1, w, h,
styleTop, styleBottom, styleRight, styleLeft,
cRadioTL, cRadioTR,
Expand Down Expand Up @@ -322,7 +322,7 @@ public void GxDrawLine(int left, int top, int right, int bottom, int width, int
y2 = pageSize.getUpperRightY() - topAux - topMargin -bottomMargin;

cb.saveGraphicsState();
cb.setStrokingColor(foreRed, foreGreen, foreBlue);
cb.setStrokingColor(foreRed / 255f, foreGreen / 255f, foreBlue / 255f);
cb.setLineWidth(widthAux);

if (lineCapProjectingSquare) {
Expand Down
Loading