gr.DrawRectangle(Pens.Black, square.pMediodGroup.coverageleft, _
square.pMediodGroup.coveragetop, square.pMediodGroup.coveragewidth, _
square.pMediodGroup.coverageheight)
Dim pn As New Pen(Color.Yellow)
Dim rect As New Rectangle(square.pMediodGroup.coverageleft, _
square.pMediodGroup.coveragetop, square.pMediodGroup.coveragewidth, _
square.pMediodGroup.coverageheight)
gr.DrawEllipse(pn, rect)
Rectangle rc; // We assume that this contains the old bounding rectangle
double a = rc.Width / 2.0;
double b = rc.Height / 2.0;
double halfWidth = Math.Sqrt(2 * a * a);
double halfHeight = Math.Sqrt(2 * b * b);
Rectangle rcNew = new Rectangle(posx,posy,halfWidth*2,halfHeight*2);
في Feb 11, 2007 17:20، عقد عابرة حاجبيه بتفكير وقال:
لكن، لم افهم لماذا ساحتاج..وفي Feb 11, 2007 17:20، قال عابرة متحمساً:
في برنامجي يجب ان احسب محيط كل مجموعة