Example #1
0
 public MprStlRect()
 {
     Printed = false;
     Border = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;
     Pen = new MprStlPen();
     BackGroundColor = Color.Transparent;
 }
Example #2
0
 public MprStlEllp()
 {
     Printed = false;
     HasBorder = true;
     Pen = new MprStlPen();
     BackGroundColor = Color.Transparent;
 }
Example #3
0
        public MprObjLine(string id_rpt_obj, ObjectSection s)
        {
            ID = null;
            IDReport = id_rpt_obj;
            Name = "Line" + DateTime.Now.ToLongTimeString();
            Category = ObjectCategory.Line;
            Section = s;
            Index = 0;
            Printed = true;
            Type = ObjectType.Static;
            RotateAngle = 0;

            Point1 = new Point(0, 0);
            Point2 = new Point(500, 100);
            Style = new MprStlPen();
        }
Example #4
0
 void DrawLine(int x1, int y1, int x2, int y2, MprStlPen style)
 {
     SetPEN(style);
     G.DrawLine(PEN, x1, y1, x2, y2);
 }
Example #5
0
 void SetPEN(MprStlPen s)
 {
     PEN.Color = s.Color;
     PEN.Width = s.Weight;
 }