Package com.lightcrafts.mediax.jai.operator

Examples of com.lightcrafts.mediax.jai.operator.TransposeType


        throws BadImageFileException, IOException, UnknownImageTypeException
    {
        final RenderedImage thumb = super.getThumbnailImage( imageInfo );
        final ImageMetadata metaData = imageInfo.getMetadata();
        final ImageOrientation orientation = metaData.getOrientation();
        final TransposeType transpose = orientation.getCorrection();
        if ( transpose == null )
            return thumb;
        final ParameterBlock pb = new ParameterBlock();
        pb.addSource( thumb );
        pb.add( transpose );
View Full Code Here


    // Rotate the given image according to the given orientation metadata.
    static RenderedImage rotate(RenderedImage image, ImageMetadata meta) {
        if (meta != null) {
            ImageOrientation orient = meta.getOrientation();
            TransposeType transpose = orient.getCorrection();
            if (transpose != null) {
                ParameterBlock pb = new ParameterBlock();
                pb.addSource(image);
                pb.add(transpose);
                image = JAI.create(
View Full Code Here

    // Used for the rotate-right and rotate-left actions in ImageDatum.
    static RenderedImage rotateNinetyTimes(RenderedImage image, int multiple) {
        while (multiple < 0) {
            multiple += 4;
        }
        TransposeType transpose;
        switch (multiple % 4) {
            case 1:
                transpose = TransposeDescriptor.ROTATE_90;
                break;
            case 2:
View Full Code Here

            /// and transform the ROI with it to avoid forcing
            /// ROI.getAsImage to be called.

            // Retrieve the transpose type and create a nearest neighbor
            // Interpolation object.
            TransposeType transposeType =
                (TransposeType)pb.getObjectParameter(0);
            Interpolation interp =
                Interpolation.getInstance(Interpolation.INTERP_NEAREST);

            // Return the transposed ROI.
View Full Code Here

TOP

Related Classes of com.lightcrafts.mediax.jai.operator.TransposeType

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.