コード例 #1
0
        public void DrawRectangle(ICRField Field)
        {
            RectangleTool currentElement = new RectangleTool();

            // currentLayer.Elements.Clear();
            currentElement.PenWidth          = 2;
            currentElement.PenColor          = Color.Red;
            currentElement.BackStyle         = BackStyle.Transparent;
            currentElement.BoundingRectangle = new Rectangle(Field.Left, Field.Top, Field.Width, Field.Height); //myTextBlockRes.TextLine(0).Area;
            currentLayer.Elements.Add(currentElement);

            try
            {
                notateXpress1.Layers.Brand(4);
            }
            catch
            {
            }

            /*
             * // OutputImg.Image = InputImg.Image.Copy();
             * Graphics g = OutputImg.CreateGraphics();
             * g.DrawRectangle(new Pen(Brushes.Blue, 2), new Rectangle(Field.Left, Field.Top, Field.Width, Field.Height));
             * g.Dispose();
             */
            OnPictureChanged(ICRType.Image);
        }
コード例 #2
0
 public void Add(ICRField _Field)
 {
     this.Add(_Field.Name, _Field);
 }