Exemplo n.º 1
0
        public HCCanvas()
        {
            FPen           = new HCPen();
            FPen.OnChanged = DoPenChanged;

            FBrush           = new HCBrush();
            FBrush.OnChanged = DoBrushChanged;

            FFont           = new HCFont();
            FFont.OnChanged = DoFontChanged;
        }
Exemplo n.º 2
0
        public HCCanvas()
        {
            IntPtr vDC = User.GetDC(IntPtr.Zero);

            try
            {
                ScreenLogPixels = GDI.GetDeviceCaps(vDC, GDI.LOGPIXELSY);
            }
            finally
            {
                User.ReleaseDC(IntPtr.Zero, vDC);
            }

            FPen           = new HCPen();
            FPen.OnChanged = DoPenChanged;

            FBrush           = new HCBrush();
            FBrush.OnChanged = DoBrushChanged;

            FFont           = new HCFont();
            FFont.OnChanged = DoFontChanged;
        }