Esempio n. 1
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        public PlotSurface2D()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            // double buffer, and update when resize.
            base.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            base.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            //base.SetStyle(ControlStyles.DoubleBuffer, true);
            base.SetStyle(ControlStyles.UserPaint, true);
            base.ResizeRedraw = true;

            ps_ = new NPlot.PlotSurface2D();

            this.InteractionOccured += new InteractionHandler(OnInteractionOccured);
            this.PreRefresh         += new PreRefreshHandler(OnPreRefresh);
        }
Esempio n. 2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="b">The Bitmap where the plot is to be rendered.</param>
 public PlotSurface2D( System.Drawing.Bitmap b )
 {
     b_ = b;
     ps_ = new NPlot.PlotSurface2D();
 }
Esempio n. 3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="width">width of the bitmap.</param>
 /// <param name="height">height of the bitmap.</param>
 public PlotSurface2D( int width, int height )
 {
     b_ = new System.Drawing.Bitmap( width, height );
     ps_ = new NPlot.PlotSurface2D();
 }
Esempio n. 4
0
 public PlotSurface2D()
 {
     ps       = new NPlot.PlotSurface2D();
     CanFocus = false;
     SetSizeRequest(200, 200);
 }
Esempio n. 5
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="b">The Bitmap where the plot is to be rendered.</param>
 public PlotSurface2D(System.Drawing.Bitmap b)
 {
     b_  = b;
     ps_ = new NPlot.PlotSurface2D();
 }
Esempio n. 6
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="width">width of the bitmap.</param>
 /// <param name="height">height of the bitmap.</param>
 public PlotSurface2D(int width, int height)
 {
     b_  = new System.Drawing.Bitmap(width, height);
     ps_ = new NPlot.PlotSurface2D();
 }
        /// <summary>
        /// Default constructor.
        /// </summary>
        public PlotSurface2D()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            // double buffer, and update when resize.
            base.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            base.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            //base.SetStyle(ControlStyles.DoubleBuffer, true);
            base.SetStyle(ControlStyles.UserPaint, true);
            base.ResizeRedraw = true;

            ps_ = new NPlot.PlotSurface2D();

            this.InteractionOccured += new InteractionHandler(OnInteractionOccured);
            this.PreRefresh += new PreRefreshHandler(OnPreRefresh);
        }
Esempio n. 8
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public PlotSurface2D()
 {
     ps_ = new NPlot.PlotSurface2D ();
     CanFocus = false;
     SetSizeRequest (200, 200);
 }
Esempio n. 9
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="b">The Bitmap where the plot is to be rendered.</param>
 public PlotSurface2D(IBitmap b)
 {
     Bitmap = b;
     ps_    = new NPlot.PlotSurface2D();
 }
Esempio n. 10
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="width">width of the bitmap.</param>
 /// <param name="height">height of the bitmap.</param>
 public PlotSurface2D(int width, int height)
 {
     Bitmap = Factory.Instance.CreateBitmap(width, height);
     ps_    = new NPlot.PlotSurface2D();
 }