Example #1
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 #2
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);
            }
        }