Exemple #1
0
        public GDIRenderer(IRenderingNativeControl native)
            : base(native)
        {
            // Subscribe to mouse events
            native.MouseDownNative += this.OnMouseDown;
            native.MouseUpNative   += this.OnMouseUp;
            native.MouseMoveNative += this.OnMouseMove;

            //
            this.Color           = Color.Black;
            this.bufferedGraphic = new BufferedGraphic(this.Draw, this.Refresh, native.DisposeImage, native.IsDisplayed);
        }
Exemple #2
0
 public WaveFormControl()
 {
     this.DoubleBuffered = true;
     this.InitializeComponent();
     bg = new BufferedGraphic <WaveFormControl>(this);
 }