@@ -242,9 +242,9 @@ public void GxDrawRect(int left, int top, int right, int bottom, int pen, int fo
242
242
243
243
if (cornerRadioBL == 0 && cornerRadioBR == 0 && cornerRadioTL == 0 && cornerRadioTR == 0 && styleBottom == 0 && styleLeft == 0 && styleRight == 0 && styleTop == 0 ) {
244
244
if (pen > 0 )
245
- cb .setStrokingColor (foreRed , foreGreen , foreBlue );
245
+ cb .setStrokingColor (foreRed / 255f , foreGreen / 255f , foreBlue / 255f );
246
246
else
247
- cb .setStrokingColor (backRed , backGreen , backBlue );
247
+ cb .setStrokingColor (backRed / 255f , backGreen / 255f , backBlue / 255f );
248
248
249
249
cb .addRect (x1 , y1 , x2 - x1 , y2 - y1 );
250
250
@@ -278,7 +278,7 @@ public void GxDrawRect(int left, int top, int right, int bottom, int pen, int fo
278
278
cRadioBR = Math .max (0 , Math .min (cRadioBR , max / 2 ));
279
279
280
280
if (backMode != 0 ) {
281
- cb .setStrokingColor (backRed , backGreen , backBlue );
281
+ cb .setStrokingColor (backRed / 255f , backGreen / 255f , backBlue / 255f );
282
282
cb .setLineWidth (0 );
283
283
roundRectangle (cb , x1 , y1 , w , h ,
284
284
cRadioTL , cRadioTR ,
@@ -288,7 +288,7 @@ public void GxDrawRect(int left, int top, int right, int bottom, int pen, int fo
288
288
cb .setLineWidth (penAux );
289
289
}
290
290
if (pen > 0 ) {
291
- cb .setStrokingColor (foreRed , foreGreen , foreBlue );
291
+ cb .setStrokingColor (foreRed / 255f , foreGreen / 255f , foreBlue / 255f );
292
292
drawRectangle (cb , x1 , y1 , w , h ,
293
293
styleTop , styleBottom , styleRight , styleLeft ,
294
294
cRadioTL , cRadioTR ,
@@ -322,7 +322,7 @@ public void GxDrawLine(int left, int top, int right, int bottom, int width, int
322
322
y2 = pageSize .getUpperRightY () - topAux - topMargin -bottomMargin ;
323
323
324
324
cb .saveGraphicsState ();
325
- cb .setStrokingColor (foreRed , foreGreen , foreBlue );
325
+ cb .setStrokingColor (foreRed / 255f , foreGreen / 255f , foreBlue / 255f );
326
326
cb .setLineWidth (widthAux );
327
327
328
328
if (lineCapProjectingSquare ) {
0 commit comments