예제 #1
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();
        }
예제 #2
0
        private void TestCaseRectangle()
        {
            GDIObject rect = new GDIObject();
            rect.X = 30;
            rect.Y = 30;
            rect.LineThickness = 15;
            rect.Rotation = 45;
            rect.Skew = new PointF(0.3f, 0);

            canvas.Objects.Clear();
            canvas.Objects.Add(rect);
            pnlCanvas.Invalidate();
        }