Esempio n. 1
0
 public void DrawTextNoBackground(int ichBase, IVwGraphics _vg, Rect rcSrc, Rect rcDst, out int dxdWidth)
 {
     if (DrawActions == null)
     {
         DrawActions = new List <object>();
     }
     DrawActions.Add(new DrawTextNoBackgroundAction()
     {
         Segment = this, IchBase = ichBase, Vg = _vg, RcSrc = rcSrc, RcDst = rcDst
     });
     dxdWidth = Width;
 }
Esempio n. 2
0
 public void DrawRectangle(int xLeft, int yTop, int xRight, int yBottom)
 {
     RectanglesDrawn.Add(new Rectangle(xLeft, yTop, xRight - xLeft, yBottom - yTop));
     RectColorsDrawn.Add(BackColor);
     if (DrawActions == null)
     {
         DrawActions = new List <object>();
     }
     DrawActions.Add(new DrawRectangleAction()
     {
         Left = xLeft, Top = yTop, Right = xRight, Bottom = yBottom, Bgr = BackColor
     });
 }
Esempio n. 3
0
 public void DrawHorzLine(int xLeft, int xRight, int y, int dyHeight, int cdx, int[] rgdx, ref int dxStart)
 {
     Assert.That(cdx, Is.EqualTo(rgdx.Length));
     if (DrawActions == null)
     {
         DrawActions = new List <object>();
     }
     DrawActions.Add(new DrawHorzLineAction()
     {
         Left    = xLeft,
         Right   = xRight,
         Y       = y,
         Height  = dyHeight,
         Rgdx    = rgdx,
         DxStart = dxStart
     });
 }
Esempio n. 4
0
 public void DrawDot(decimal Value, decimal Count)
 {
     DrawActions.Add(new Action(() => buffer.Graphics.DrawEllipse(Pens.Yellow, new Rectangle(ValueToX(Value) - 2, CountToY(Count) - 2, 4, 4))));
 }