//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; }
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)); }