Example #1
0
 public GDIObjectContainer(GDIObjectContainer parent = null)
     : base(parent)
 {
     Items = new List<GDIObject>();
     ScrollX = 0;
     ScrollY = 0;
 }
Example #2
0
 protected GDIObject getRootObject(GDIObjectContainer obj)
 {
     if (obj.Parent != null)
     {
         return(getRootObject(obj.Parent));
     }
     else
     {
         return(obj);
     }
 }
Example #3
0
        public GDIObject(GDIObjectContainer parent = null)
        {
            X = 0;
            Y = 0;
            Width = 100;
            Height = 100;
            LineColor = new GDIColor(0, 0, 0);
            LineThickness = 1;
            LineAlpha = 255;
            FillAlpha = 255;
            FillColor = new GDIColor(255, 0, 0);
            Rotation = 0;
            Skew = PointF.Empty;

            Parent = parent;
            if (Parent != null)
                Parent.Items.Add(this);
        }
Example #4
0
        private void TestCaseContainer()
        {
            GDIObjectContainer container = new GDIObjectContainer();
            container.Width = 200;
            container.Height = 200;
            container.FillColor = new GDIColor(0, 255, 0);
            container.X = 30;
            container.Y = 30;

            GDIObject objA = new GDIObject(container);
            objA.FillColor = new GDIColor(255, 0, 0);
            objA.X = 170;
            objA.Y = 170;

            canvas.Objects.Clear();
            canvas.Objects.Add(container);
            pnlCanvas.Invalidate();
        }
Example #5
0
        public GDIObject(GDIObjectContainer parent = null)
        {
            X             = 0;
            Y             = 0;
            Width         = 100;
            Height        = 100;
            LineColor     = new GDIColor(0, 0, 0);
            LineThickness = 1;
            LineAlpha     = 255;
            FillAlpha     = 255;
            FillColor     = new GDIColor(255, 0, 0);
            Rotation      = 0;
            Skew          = PointF.Empty;

            Parent = parent;
            if (Parent != null)
            {
                Parent.Items.Add(this);
            }
        }
Example #6
0
 public GDIBitmap(GDIObjectContainer parent = null)
     : base(parent)
 {
     ScaleY = 1;
     ScaleX = 1;
 }
Example #7
0
 public GDILine(GDIObjectContainer parent = null) : base(parent)
 {
 }
Example #8
0
 public GDIObjectContainer(GDIObjectContainer parent = null) : base(parent)
 {
     Items   = new List <GDIObject>();
     ScrollX = 0;
     ScrollY = 0;
 }
Example #9
0
 public GDILine(GDIObjectContainer parent = null)
     : base(parent)
 {
 }
Example #10
0
 public GDIBitmap(GDIObjectContainer parent = null) : base(parent)
 {
     ScaleY = 1;
     ScaleX = 1;
 }
Example #11
0
 protected GDIObject getRootObject(GDIObjectContainer obj)
 {
     if (obj.Parent != null)
         return getRootObject(obj.Parent);
     else
         return obj;
 }