Example #1
0
        public void Dispose()
        {
            refCount--;

//			Console.WriteLine("Win32Graphics: Dispose");

            graphics.Dispose();

            while (fontStack.Count > 0)
            {
                PopFont();
            }

            foreach (IntPtr fh in fontHandles.Values)
            {
                Win32Util.DeleteObject(fh);
//				Console.WriteLine("Deleted font {0}", fh.ToInt32()/*.ToString("X")*/);
            }
            fontHandles.Clear();

            originatingGraphics.ReleaseHdc(hdc);
        }