示例#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);
        }
示例#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();
 }
示例#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();
 }
示例#4
0
 public PlotSurface2D()
 {
     ps       = new NPlot.PlotSurface2D();
     CanFocus = false;
     SetSizeRequest(200, 200);
 }
示例#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();
 }
示例#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);
        }
示例#8
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public PlotSurface2D()
 {
     ps_ = new NPlot.PlotSurface2D ();
     CanFocus = false;
     SetSizeRequest (200, 200);
 }
示例#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();
 }
示例#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();
 }