//UPGRADE_NOTE: ref keyword was added to struct-type parameters. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1303_3"' public override void getBounds(System.Drawing.Drawing2D.Matrix transform, ref System.Drawing.Rectangle r, ref System.Drawing.PointF position) { System.Drawing.Rectangle a = new System.Drawing.Rectangle(); double x, y; x = (double)position.X - System.Math.Cos(SupportClass.DegreesToRadians(startAngle)) * xRadius; y = (double)position.Y - System.Math.Sin(SupportClass.DegreesToRadians(startAngle)) * yRadius; //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"' a.X = (int)(x - xRadius); //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"' a.Y = (int)(y - yRadius); //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"' a.Width = (int)System.Math.Ceiling(x + xRadius) - a.X; //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"' a.Height = (int)System.Math.Ceiling(y + yRadius) - a.Y; System.Drawing.Drawing2D.Matrix temp_Matrix; temp_Matrix = new System.Drawing.Drawing2D.Matrix(); temp_Matrix.Rotate((float)(rotation * (180 / System.Math.PI))); //UPGRADE_NOTE: ref keyword was added to struct-type parameters. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1303_3"' a = Util.transform(Util.multiply(transform, temp_Matrix), ref a); //UPGRADE_NOTE: ref keyword was added to struct-type parameters. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1303_3"' Util.combine(ref r, ref a); //UPGRADE_NOTE: ref keyword was added to struct-type parameters. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1303_3"' System.Drawing.PointF endPoint = calcPoint(1.0, ref position); position.X = (float)endPoint.X; position.Y = (float)endPoint.Y; }
//UPGRADE_NOTE: ref keyword was added to struct-type parameters. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1303_3"' public virtual void getBounds(System.Drawing.Drawing2D.Matrix transform, ref System.Drawing.Rectangle r, ref System.Drawing.PointF position) { //UPGRADE_NOTE: ref keyword was added to struct-type parameters. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1303_3"' Util.addPointToBounds(transform, ref r, x, y); position.X = (float)x; position.Y = (float)y; }
/// <summary> Gets the bounds of this subpath using the given transform. /// /// </summary> /// <param name="transform">the transform /// </param> /// <param name="r">the bounds. /// </param> //UPGRADE_NOTE: ref keyword was added to struct-type parameters. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1303_3"' public virtual void getBounds(System.Drawing.Drawing2D.Matrix transform, ref System.Drawing.Rectangle r) { System.Drawing.PointF position = new System.Drawing.PointF((float)startX, (float)startY); //UPGRADE_NOTE: ref keyword was added to struct-type parameters. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1303_3"' Util.addPointToBounds(transform, ref r, startX, startY); for (int i = 0; i < segments.Length; i++) { //UPGRADE_NOTE: ref keyword was added to struct-type parameters. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1303_3"' segments[i].getBounds(transform, ref r, ref position); } }
public virtual System.Drawing.Rectangle getBounds(System.Drawing.Drawing2D.Matrix transform) { System.Drawing.Rectangle tempAux = System.Drawing.Rectangle.Truncate(shape.GetBounds()); //UPGRADE_NOTE: ref keyword was added to struct-type parameters. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1303_3"' return(Util.transform(transform, ref tempAux)); }