@@ -263,11 +263,6 @@ public override void DrawLine(RPen pen, double x1, double y1, double x2, double
263263
264264 public override void DrawRectangle ( RPen pen , double x , double y , double width , double height )
265265 {
266- x = ( int ) x ;
267- y = ( int ) y ;
268- width = ( int ) width ;
269- height = ( int ) height ;
270-
271266 var adj = pen . Width ;
272267 if ( Math . Abs ( adj % 2 - 1 ) < .1 )
273268 {
@@ -280,7 +275,7 @@ public override void DrawRectangle(RPen pen, double x, double y, double width, d
280275
281276 public override void DrawRectangle ( RBrush brush , double x , double y , double width , double height )
282277 {
283- _g . DrawRectangle ( ( ( BrushAdapter ) brush ) . Brush , null , new Rect ( ( int ) x , ( int ) y , ( int ) width , ( int ) height ) ) ;
278+ _g . DrawRectangle ( ( ( BrushAdapter ) brush ) . Brush , null , new Rect ( x , y , width , height ) ) ;
284279 }
285280
286281 public override void DrawImage ( RImage image , RRect destRect , RRect srcRect )
@@ -311,9 +306,9 @@ public override void DrawPolygon(RBrush brush, RPoint[] points)
311306 var g = new StreamGeometry ( ) ;
312307 using ( var context = g . Open ( ) )
313308 {
314- context . BeginFigure ( Utils . ConvertRound ( points [ 0 ] ) , true , true ) ;
309+ context . BeginFigure ( Utils . Convert ( points [ 0 ] ) , true , true ) ;
315310 for ( int i = 1 ; i < points . Length ; i ++ )
316- context . LineTo ( Utils . ConvertRound ( points [ i ] ) , true , true ) ;
311+ context . LineTo ( Utils . Convert ( points [ i ] ) , true , true ) ;
317312 }
318313 g . Freeze ( ) ;
319314
0 commit comments