Examples of Rect


Examples of toxi.geom.Rect

    }

    public abstract void erodeAt(int x, int y);

    public void erodeWithinPolygon(Polygon2D poly) {
        Rect bounds = poly.getBounds().intersectionRectWith(
                new Rect(1, 1, width - 2, height - 2));
        Vec2D pos = new Vec2D();
        for (int y = (int) bounds.getTop(), y2 = (int) bounds.getBottom(); y < y2; y++) {
            for (int x = (int) bounds.getLeft(), x2 = (int) bounds.getRight(); x < x2; x++) {
                if (poly.containsPoint(pos.set(x, y))) {
                    erodeAt(x, y);
                }
            }
        }
View Full Code Here

Examples of tv.porst.swfretools.parser.structures.Rect

   * @throws SWFParserException Thrown if parsing the tag failed.
   */
  public static DefineTextTag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UINT16 characterId = parseUINT16(parser, 0x00006, "DefineText::CharacterId");
    final Rect textBounds = RectParser.parse(parser, "DefineText::TextBounds");
    final Matrix textMatrix = MatrixParser.parse(parser, "DefineText::TextMatrix");
    final UINT8 glyphBits = parseUINT8(parser, 0x00006, "DefineText::GlyphBits");
    final UINT8 advanceBits = parseUINT8(parser, 0x00006, "DefineText::AdvanceBits");

    final List<TextRecord> textRecords = new ArrayList<TextRecord>();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.