Alsing.Drawing.GDI.GDISurface.GDISurface C# (CSharp) Method

GDISurface() public method

public GDISurface ( int width, int height, Control CompatibleControl, bool BindControl ) : System
width int
height int
CompatibleControl System.Windows.Forms.Control
BindControl bool
return System
        public GDISurface(int width, int height, Control CompatibleControl, bool BindControl)
        {
            IntPtr hDCControk = NativeMethods.ControlDC(CompatibleControl);
            Init(width, height, hDCControk);
            NativeMethods.ReleaseDC(CompatibleControl.Handle, hDCControk);

            if (BindControl)
            {
                Control = CompatibleControl;
            }

            Create();
        }

Same methods

GDISurface::GDISurface ( IntPtr hDC ) : System
GDISurface::GDISurface ( int width, int height, GDISurface surface ) : System
GDISurface::GDISurface ( int width, int height, IntPtr hdc ) : System