Package com.volantis.mcs.policies.variants.metadata

Examples of com.volantis.mcs.policies.variants.metadata.PixelDimensionsMetaData


        // get dimensions for image and video and save it to params into
        // attributes
        if (variantType == VariantType.IMAGE
                || variantType == VariantType.VIDEO) {

            PixelDimensionsMetaData dimMetaData =
                (PixelDimensionsMetaData) selectedVariant
                    .getVariant().getMetaData();
            // get the Map of parameters
            Map params = attributes.getParamMap();

            // save height and width in pixels unit to object's parameter map
            if (dimMetaData.getHeight() != 0) {
                params.put("height", StringConvertor.valueOf(dimMetaData
                        .getHeight()));
            }
            if (dimMetaData.getWidth() != 0) {
                params.put("width", StringConvertor.valueOf(dimMetaData
                        .getWidth()));
            }
        }

        // convert image if needed
View Full Code Here


                        ImageMetaData metadata = (ImageMetaData) selected.getVariant().getMetaData();

                        if (ImageConversionMode.ALWAYS_CONVERT ==
                            metadata.getConversionMode()) {

                            PixelDimensionsMetaData dimMetaData =
                                (PixelDimensionsMetaData) selected
                                    .getVariant().getMetaData();

                            // save height and width in pixels unit to object's parameter map
                            if (dimMetaData.getHeight() != 0) {
                                pattributes.setHeight(StringConvertor.valueOf(dimMetaData
                                        .getHeight()));
                            }
                            if (dimMetaData.getWidth() != 0) {
                                pattributes.setWidth(StringConvertor.valueOf(dimMetaData
                                        .getWidth()));
                            }
                           
                            pattributes.setNeedsFinalizer();
View Full Code Here

TOP

Related Classes of com.volantis.mcs.policies.variants.metadata.PixelDimensionsMetaData

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.