Пример #1
0
        private void Recreate(Size2D size)
        {
            IAutoFieldDisposable.DisposeFields(this);

            size     = size.ClampMin(1, 1);
            Image    = new System.Drawing.Bitmap(size.Width, size.Height, System.Drawing.Imaging.PixelFormat.Format32bppRgb);
            Graphics = System.Drawing.Graphics.FromImage(Image);
            Graphics.SmoothingMode     = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
            Graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
        }