/// <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); }
/// <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(); }
/// <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(); }
public PlotSurface2D() { ps = new NPlot.PlotSurface2D(); CanFocus = false; SetSizeRequest(200, 200); }
/// <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(); }
/// <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() { ps_ = new NPlot.PlotSurface2D (); CanFocus = false; SetSizeRequest (200, 200); }
/// <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(); }
/// <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(); }