Package flash.swf.tags

Examples of flash.swf.tags.DefineBits


        if (source == null)
        {
            // Exception: Missing source attribute in <BitmapGraphic> or <BitmapFill>.
            throw new FXGException(node.getStartLine(), node.getStartColumn(), "MissingSourceAttribute");
        }
        DefineBits imageTag = createDefineBits(node, source);
       
        if ((node.visible) && (!node.isPartofClipMask))
        {
      
            DefineShape imageShape;
View Full Code Here


    protected DefineBits createDefineBits(FXGNode node, String source)
    {
        try
        {
            InputStream stream = resourceResolver.openStream(source);
            DefineBits imageTag = ImageHelper.createDefineBits(stream, ImageHelper.guessMimeType(source));
            return imageTag;
        }
        catch (IOException ioe)
        {
            // Exception:Error {0} occurred while embedding image {1}.
View Full Code Here

            if (source == null)
            {
                // Exception: Missing source attribute in <BitmapGraphic> or <BitmapFill>.
                throw new FXGException(fill.getStartLine(), fill.getStartColumn(), "MissingSourceAttribute");
            }
            DefineBits imageTag = createDefineBits(fill, source);

            //process the filters later to avoid masking
            List<FilterNode> filters = null;
            if (context.filters != null)      
            {  
View Full Code Here

            // Source is required after FXG 1.0
            // Exception: Missing source attribute in <BitmapGraphic> or <BitmapFill>.
            throw new FXGException(fill.getStartLine(), fill.getStartColumn(), "MissingSourceAttribute");
        }

        DefineBits img = createDefineBits(fill, sourceFormatted)
        fs.bitmap = img;
       
        fs.matrix = TypeHelper.bitmapFillMatrix(fill, img, bounds).toSWFMatrix();

        return fs;
View Full Code Here

    public void DefineBits(Attributes attributes) throws SAXException
    {
        if (jpegTables == null)
            fatalError(new SAXParseException("DefineBits must follow JPEGTables", locator));

        DefineBits db = new DefineBits(stagDefineBits);
        int id = parseInt(getAttribute(attributes, "id"));
        createCharacter(id, db);

        SwfImageUtils.JPEG jpeg = loadJPEG(attributes);
View Full Code Here

        stack.push(db);
    }

    public void DefineBits()
    {
        DefineBits db = (DefineBits)stack.pop();
        if (text != null)
        {
            // text is allocated for the base64 encoding

            Base64.Decoder dec = new Base64.Decoder();
View Full Code Here

    }

    public void DefineBitsJPEG2(Attributes attributes) throws SAXException
    {
        DefineBits db = new DefineBits(stagDefineBitsJPEG2);
        int id = parseInt(getAttribute(attributes, "id"));
        createCharacter(id, db);
        if (hasAttribute(attributes, "encoding"))
        {
            if (!getAttribute(attributes, "encoding").equals("base64"))
View Full Code Here

        stack.push(db);
    }

    public void DefineBitsJPEG2()
    {
        DefineBits db = (DefineBits)stack.pop();
        if (text != null)
        {
            // text is allocated for the base64 encoding

            Base64.Decoder dec = new Base64.Decoder();
View Full Code Here

                                  source.getLastModified(),
                                  source.size(),
                                  source.getInputStream());
            info.width = image.getWidth();
            info.height = image.getHeight();
            DefineBits defineBits = new DefineBits(Tag.stagDefineBitsJPEG2);
            defineBits.data = image.getData();
            info.defineBits = defineBits;
        }
    catch (Exception ex)
    {
View Full Code Here

        if (inputStream != null)
    {
      try
      {
                JPEGImage image = new JPEGImage(inputStream, length);
                DefineBits defineBits = new DefineBits(Tag.stagDefineBitsJPEG2);
                defineBits.data = image.getData();
        defineTags.defineBitsJPEG2(defineBits);

        DefineShape ds3 = ImageShapeBuilder.buildImage(defineBits, width, height);
        defineTags.defineShape3(ds3);
View Full Code Here

TOP

Related Classes of flash.swf.tags.DefineBits

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.