Relative.DrawInfo.drawEllipse C# (CSharp) Method

drawEllipse() public method

public drawEllipse ( Pen pen, Vec pos, double width, double height ) : void
pen System.Drawing.Pen
pos Vec
width double
height double
return void
        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);
        }

Usage Example

Exemplo n.º 1
0
        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);
        }
All Usage Examples Of Relative.DrawInfo::drawEllipse