Package com.lightcrafts.utils.bytebuffer

Examples of com.lightcrafts.utils.bytebuffer.LCByteBuffer.position()


    public ImageType getTrueImageTypeOf( ImageInfo imageInfo )
        throws IOException
    {
        final LCByteBuffer buf = imageInfo.getByteBuffer();
        try {
            buf.position( 12 );
            if ( buf.getEquals( "Raw", "ASCII" ) ) {
                final ImageMetadata metadata = imageInfo.getCurrentMetadata();
                MetadataUtil.removePreviewMetadataFrom( metadata );
                MetadataUtil.removeWidthHeightFrom( metadata );
                return PhaseOneTIFFRawImageType.INSTANCE;
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.