Package org.apache.flex.swf.tags

Examples of org.apache.flex.swf.tags.DefineBitsJPEG3Tag


    private DefineBitsTag buildImage(byte[] imageBytes, byte[] alphaBytes)
    {
        if (imageBytes == null || alphaBytes == null)
            return null;

        DefineBitsJPEG3Tag tag = new DefineBitsJPEG3Tag();
        tag.setImageData(imageBytes);
        tag.setBitmapAlphaData(alphaBytes);
        tag.setAlphaDataOffset(imageBytes.length);
        return tag;
    }
View Full Code Here


        final int id = bitStream.readUI16();
        final int alphaDataOffset = (int)bitStream.readUI32();
        final byte[] imageData = bitStream.read(alphaDataOffset);
        final byte[] bitmapAlphaData = bitStream.readToBoundary();

        final DefineBitsJPEG3Tag tag = new DefineBitsJPEG3Tag();
        tag.setCharacterID(id);
        tag.setAlphaDataOffset(alphaDataOffset);
        tag.setImageData(imageData);
        tag.setBitmapAlphaData(bitmapAlphaData);
        return tag;
    }
View Full Code Here

TOP

Related Classes of org.apache.flex.swf.tags.DefineBitsJPEG3Tag

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.