コード例 #1
0
        public HTest()
        {
            var roofs = new roofs().AttachTo(this);

            image              = roofs.bitmapData;
            anchors            = new Vector <Anchor>(4, true);
            anchors[0]         = new Anchor(100, 257).AttachTo(this);
            anchors[1]         = new Anchor(122, 218).AttachTo(this);
            anchors[2]         = new Anchor(131, 251).AttachTo(this);
            anchors[3]         = new Anchor(111, 296).AttachTo(this);
            homography         = new Homography().AttachTo(this);
            homography.x       = homography.y = 350;
            homography.filters = new[] { new GlowFilter(0xFF7F00, 1, 2, 2, 200, 2) };


            stage.mouseMove += onMouseMove;

            onMouseMove(null);
        }
コード例 #2
0
        public HTest()
        {

            var roofs = new roofs().AttachTo(this);

            image = roofs.bitmapData;
            anchors = new Vector<Anchor>(4, true);
            anchors[0] = new Anchor(100, 257).AttachTo(this);
            anchors[1] = new Anchor(122, 218).AttachTo(this);
            anchors[2] = new Anchor(131, 251).AttachTo(this);
            anchors[3] = new Anchor(111, 296).AttachTo(this);
            homography = new Homography().AttachTo(this);
            homography.x = homography.y = 350;
            homography.filters = new[] { new GlowFilter(0xFF7F00, 1, 2, 2, 200, 2) };


            stage.mouseMove += onMouseMove;

            onMouseMove(null);

        }