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