Package com.lightcrafts.model

Examples of com.lightcrafts.model.Engine


        if (type == LZNImageType.INSTANCE) {
            SaveOptions options = SaveOptions.createLzn(file);
            return options;
        }
        SaveOptions options;
        Engine engine = doc.getEngine();
        Dimension size = engine.getNaturalSize();

        if (type instanceof TIFFImageType) {
            options = SaveOptions.createSidecarTiff(export);
        }
        else if (type instanceof JPEGImageType) {
View Full Code Here


        }
        outFile = ExportNameUtility.ensureNotExists(outFile);
        export.setExportFile(outFile);

        if (ignoreResize) {
            Engine engine = doc.getEngine();
            Dimension size = engine.getNaturalSize();
            export.resizeWidth.setValue(size.width);
            export.resizeHeight.setValue(size.height);
        }
    }
View Full Code Here

    }

    static SaveOptions createExportOptions(Document doc) {
        final OtherApplication app = (OtherApplication) doc.getSource();
        final ImageInfo info = getImageInfo(doc);
        final Engine engine = doc.getEngine();
        final Dimension size = engine.getNaturalSize();
        try {
            final ImageExportOptions export =
                app.createExportOptions(info, size);
            if (export != null) {
                final SaveOptions options = getSaveOptions(export);
View Full Code Here

        try {
            if (info.getImageType() != LZNImageType.INSTANCE) {
                return null;
            }
            Document doc = Application.createDocumentHeadless(file);
            Engine engine = doc.getEngine();
            Dimension dim = new Dimension(size, size);
            RenderedImage preview = engine.getRendering(dim);
            // divorce the preview from the document
            preview = new CachedImage(
                (PlanarImage) preview, JAIContext.fileCache
            );
            doc.dispose();
View Full Code Here

TOP

Related Classes of com.lightcrafts.model.Engine

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.