Examples of newExportOptions()


Examples of com.lightcrafts.image.types.ImageType.newExportOptions()

        final String typeName = node.getAttribute( TypeTag );
        final ImageType type = ImageType.getImageTypeByName( typeName );
        if ( type == null ) {
            throw new XMLException( "Unrecognized image export type" );
        }
        final ImageExportOptions options = type.newExportOptions();
        options.restore( node );
        if ( node.hasAttribute( FileTag ) ) {
            options.m_exportFile = new File( node.getAttribute( FileTag ) );
        }
        return options;
View Full Code Here

Examples of com.lightcrafts.image.types.ImageType.newExportOptions()

        final ImageType type = ImageType.getImageTypeByName( typeName );
        if ( type == null )
            throw new XMLException(
                "Unrecognized image export type: \"" + typeName + '"'
            );
        final ImageExportOptions options = type.newExportOptions();
        if ( m_parent.hasAttribute( ImageExportOptionXMLWriter.FileTag ) ) {
            final String exportFileName =
                m_parent.getAttribute( ImageExportOptionXMLWriter.FileTag );
            final File exportFile = new File( exportFileName );
            options.setExportFile( exportFile );
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.