Alsing.Drawing.GDI.GDISurface.GDISurface C# (CSharp) 메소드

GDISurface() 공개 메소드

public GDISurface ( int width, int height, Control CompatibleControl, bool BindControl ) : System
width int
height int
CompatibleControl System.Windows.Forms.Control
BindControl bool
리턴 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