Exemple #1
0
 public Bitmap GetMemBitmap(Rectangle R)
 {
     R.Offset(-R.X, -R.Y);
     R.Inflate(1, 1);
     if (this.NeedRedraw)
     {
         this.SetMemGraphics(R);
         this.InternalRender(this.MemG);
         this.DrawValueText(this.MemG);
     }
     if (this.ExtraPaint != null)
     {
         NativePaintArgs e = new NativePaintArgs(this.CurrentGraph, R, this.MemBmp);
         this.ExtraPaint(this, e);
         if (e.NewBitmap != null)
         {
             this.ExtraMemBmp = e.NewBitmap;
         }
     }
     if (this.ExtraMemBmp != null)
     {
         return(this.ExtraMemBmp);
     }
     return(this.MemBmp);
 }
Exemple #2
0
        //ObjectManager omDynamic = new ObjectManager();
        //LabelObject lo = new LabelObject();
        private void Designer_NativePaint(object sender, Easychart.Finance.NativePaintArgs e)
        {
//			if (omDynamic.Objects.Count==0)
//			{
//				omDynamic.SetCanvas(Designer);
//				lo.Area = Designer.Chart.MainArea;
//				lo.InitPriceLabel();
//				lo.ControlPoints[0] = new ObjectPoint(new DateTime(2003,9,20).ToOADate(),26.7);
//				omDynamic.AddObject(lo);
//			}
//			lo.Draw(e.Graphics);
        }
Exemple #3
0
//		private void miFormulaEditor_Click(object sender, System.EventArgs e)
//		{
//			FormulaSourceEditor.Open("","");
//		}

        //private void ChartControl_CursorPosChanged(Easychart.Finance.FormulaChart Chart, int Pos, Easychart.Finance.DataProvider.IDataProvider idp)
        //{
        //    //lClose.Text = "Volume="+idp["VOLUME"][Pos] +"   $"+idp["CLOSE"][Pos].ToString();
        //}

        private void ChartControl_NativePaint(object sender, Easychart.Finance.NativePaintArgs e)
        {
            //			PointF p1 = ChartControl.Chart.GetPointAt(new DateTime(2004,1,9),27.66);
            //			PointF p2 = ChartControl.Chart.GetPointAt(new DateTime(2003,11,20),25.1);
            //			e.Graphics.DrawLine(Pens.Red,p1,p2);
        }