Package flash.swf.types

Examples of flash.swf.types.Rect


    if (tag.initialText == null)
      tag.initialText = "";

    if (tag.bounds == null)
      tag.bounds = new Rect();

    return tag;
  }
View Full Code Here


    gvtRoot.paint(swf2d);
    tags = swf2d.getTags();

    //Override width and height based on the SWF-specific bounds of the sprite contents
    //However we have to correct co-ordinates back to pixels... TODO: Remove all TWIPS references!
    Rect bounds = swf2d.getBounds();
    width = (int)Math.rint((bounds.xMax - bounds.xMin)/20.0);
    height = (int)Math.rint((bounds.yMax - bounds.yMin)/20.0);
    }
View Full Code Here

  private void init()
  {
    defineTags = new TagList();
    graphicContext.validateTransformStack();
    bounds = new Rect();
  }
View Full Code Here

        // encode the movie with the product info (compilation time)
        TagEncoder te = new TagEncoder();
        MovieEncoder me = new MovieEncoder(te);

        Movie movie = new Movie();
        movie.size = new Rect(100, 100);
        movie.frames = new ArrayList();
        movie.productInfo = new ProductInfo(time);
        me.export(movie);

        ByteArrayOutputStream bos = new ByteArrayOutputStream();
View Full Code Here

            sws.shapeRecords = shape.shapeRecords;
            sws.linestyles = new ArrayList();
            sws.fillstyles = new ArrayList();
            sws.fillstyles.add(new FillStyle(SwfUtils.colorToInt(0, 0, 200, 255)));
            DefineShape tag = new DefineShape(Tag.stagDefineShape3);
            tag.bounds = new Rect(250 * 20, 250 * 20);
            tag.shapeWithStyle = sws;

            //Create a SWF Movie shell
            Movie m = getMovie(1);
            Frame frame1 = (Frame)m.frames.get(0);
View Full Code Here

        m.version = 7;
        m.bgcolor = new SetBackgroundColor(SwfUtils.colorToInt(255, 255, 255));
        m.framerate = 12;
        m.frames = new ArrayList(frameCount);
        m.frames.add(new Frame());
        m.size = new Rect(11000, 8000);
        return m;
    }
View Full Code Here

    gvtRoot.paint(swf2d);
    tags = swf2d.getTags();

    //Override width and height based on the SWF-specific bounds of the sprite contents
    //However we have to correct co-ordinates back to pixels... TODO: Remove all TWIPS references!
    Rect bounds = swf2d.getBounds();
    width = (int)Math.rint((bounds.xMax - bounds.xMin)/20.0);
    height = (int)Math.rint((bounds.yMax - bounds.yMin)/20.0);
    }
View Full Code Here

TOP

Related Classes of flash.swf.types.Rect

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.