internal override System.Drawing.Rectangle getBounds(DrawContext context, System.Drawing.Drawing2D.Matrix transform) { System.Drawing.Rectangle r = path.getBounds(transform); Filter filter = context.AAFilter; // Compensate for the antialiasing filter if (filter != null) { r = addMargin(r, (int)System.Math.Ceiling(filter.Width), (int)System.Math.Ceiling(filter.Height)); } return(r); }
internal override System.Drawing.Rectangle getBounds(DrawContext context, System.Drawing.Drawing2D.Matrix transform) { System.Drawing.Rectangle r = path.getBounds(transform); //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1042_3"' System.Drawing.Rectangle tempAux = new System.Drawing.Rectangle(0, 0, (int)System.Math.Ceiling(lineWidth / 2.0 * 4.0), (int)System.Math.Ceiling(lineWidth / 2.0 * 4.0)); //UPGRADE_NOTE: ref keyword was added to struct-type parameters. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1303_3"' System.Drawing.Rectangle wr = Util.transform(transform, ref tempAux); r.X -= wr.Width; r.Y -= wr.Width; r.Width += wr.Width * 2; r.Height += wr.Height * 2; return(r); }