public void drawEllipse(Pen pen, Vec pos, double width, double height) { mGraphics.DrawEllipse(pen, (float)(mWidth + pos.mX - width / 2), (float)(mHeight + pos.mY - height / 2), (float)width, (float)height); }
public override void draw(DrawInfo di, Object selected) { Pen pen = new Pen(Color.Black); if (this == selected) pen = new Pen(Color.Blue); di.drawEllipse(pen, mParent.getScreenFromWorld(mPos), 10, 10); }