Esempio n. 1
0
        public void Dispose()
        {
            foreach (var target in Tnc.Children)
            {
                Disposer.Dispose(target);
            }

            IAutoFieldDisposable.DisposeFields(this);
        }
Esempio n. 2
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;
        }