private Bitmap GetEmptyBitmap()
{
if (this.emptyBitmap == null)
{
this.emptyBitmap = new Bitmap(this.widthInPixels, this.heightInPixels, PixelFormat.Format32bppArgb);
using (Graphics graphics = Graphics.FromImage(this.emptyBitmap))
{
graphics.FillRectangle(this.graphicBrush, 0, 0, this.widthInPixels, this.heightInPixels);
goto Label_00E0;
}
}
if ((this.emptyBitmap.Width != Settings.Instance.GraphicWidth) ||
(this.emptyBitmap.Height != Settings.Instance.GraphicHeight))
{
this.emptyBitmap.Dispose();
this.emptyBitmap = new Bitmap(this.widthInPixels, this.heightInPixels, PixelFormat.Format32bppArgb);
using (Graphics graphics2 = Graphics.FromImage(this.emptyBitmap))
{
graphics2.FillRectangle(this.graphicBrush, 0, 0, this.widthInPixels, this.heightInPixels);
}
}
Label_00E0:
return (Bitmap)this.emptyBitmap.Clone();
}