BitmapTests.DrawingView.GetCircleImage C# (CSharp) Method

GetCircleImage() private method

Get the initial image
private GetCircleImage ( ) : Image
return Image
        private Image GetCircleImage()
        {
            if (_circleImage == null)
            {
                //draw the initial image programmatically
                _circleImage = new Bitmap(WIDTH, HEIGHT);
                Graphics g = Graphics.FromImage(_circleImage);

                //draw the shape hatch style, not draw backgound
                using (HatchBrush brush = new HatchBrush(HatchStyle.Wave, FORECOLOR, Color.Transparent))
                {
                    g.FillEllipse(brush, new Rectangle(Point.Empty, new Size(WIDTH, HEIGHT)));
                }
                g.Dispose();
            }

            return _circleImage;
        }