Package javax.media.jai

Examples of javax.media.jai.ImageLayout.unsetValid()


/* 297 */       il.setSampleModel(sm);
/*     */
/* 300 */       ColorModel cm = il.getColorModel(null);
/* 301 */       if ((cm != null) && (!JDKWorkarounds.areCompatibleDataModels(sm, cm)))
/*     */       {
/* 304 */         il.unsetValid(512);
/*     */       }
/*     */
/*     */     }
/*     */
/* 312 */     if (((layout == null) || (!il.isValid(512))) && (source.getSampleModel().getDataType() == 0) && (sm.getDataType() == 0) && (colorMap.getDataType() == 0) && (colorMap.getNumBands() == 3))
View Full Code Here


/*  82 */     il.setSampleModel(sm);
/*     */
/*  85 */     ColorModel cm = il.getColorModel(null);
/*  86 */     if ((cm != null) && (!JDKWorkarounds.areCompatibleDataModels(sm, cm)))
/*     */     {
/*  89 */       il.unsetValid(512);
/*     */     }
/*     */
/*  93 */     il.setTileGridXOffset(source.getTileGridXOffset());
/*  94 */     il.setTileGridYOffset(source.getTileGridYOffset());
/*  95 */     il.setTileWidth(source.getTileWidth());
View Full Code Here

/*     */
/* 166 */     ColorModel cm = layout.getColorModel(null);
/*     */
/* 168 */     if ((cm != null) && (!JDKWorkarounds.areCompatibleDataModels(sm, cm)))
/*     */     {
/* 171 */       layout.unsetValid(512);
/*     */     }
/*     */
/* 174 */     return layout;
/*     */   }
/*     */
View Full Code Here

/*  91 */         il.setSampleModel(sm);
/*     */
/*  94 */         ColorModel cm = layout.getColorModel(null);
/*  95 */         if ((cm != null) && (!JDKWorkarounds.areCompatibleDataModels(sm, cm)))
/*     */         {
/*  98 */           il.unsetValid(512);
/*     */         }
/*     */       }
/*     */     }
/*     */
/* 103 */     return il;
View Full Code Here

/*  191 */       il.setSampleModel(sm);
/*      */
/*  194 */       ColorModel cm = il.getColorModel(null);
/*  195 */       if ((cm != null) && (!JDKWorkarounds.areCompatibleDataModels(sm, cm)))
/*      */       {
/*  198 */         il.unsetValid(512);
/*      */       }
/*      */
/*      */     }
/*      */
/*  208 */     if (((layout == null) || (!il.isValid(512))) && (source.getSampleModel().getDataType() == 0) && (il.getSampleModel(null).getDataType() == 0) && (colorMap.getDataType() == 0) && (colorMap.getNumBands() == 3))
View Full Code Here

/*     */     }
/*     */
/* 107 */     ColorModel colorModel = layout.getColorModel(null);
/* 108 */     if ((colorModel != null) && (!JDKWorkarounds.areCompatibleDataModels(layout.getSampleModel(src), colorModel)))
/*     */     {
/* 112 */       layout.unsetValid(512);
/*     */     }
/*     */
/* 116 */     if ((layout.getSampleModel(src) == src.getSampleModel()) && (layout.getMinX(src) == src.getMinX()) && (layout.getMinY(src) == src.getMinY()) && (layout.getWidth(src) == src.getWidth()) && (layout.getHeight(src) == src.getHeight()) && (layout.getTileWidth(src) == src.getTileWidth()) && (layout.getTileHeight(src) == src.getTileHeight()) && (layout.getTileGridXOffset(src) == src.getTileGridXOffset()) && (layout.getTileGridYOffset(src) == src.getTileGridYOffset()))
/*     */     {
/* 126 */       if (layout.getColorModel(src) == src.getColorModel())
View Full Code Here

/* 155 */       il.setSampleModel(sm);
/*     */
/* 158 */       ColorModel cm = il.getColorModel(null);
/* 159 */       if ((cm != null) && (!JDKWorkarounds.areCompatibleDataModels(sm, cm)))
/*     */       {
/* 162 */         il.unsetValid(512);
/*     */       }
/*     */     }
/*     */
/* 166 */     return il;
/*     */   }
View Full Code Here

        // Tile Size
        if(hints.containsKey(JAI.KEY_IMAGE_LAYOUT)){
            final ImageLayout layout= (ImageLayout) hints.get(JAI.KEY_IMAGE_LAYOUT);
//            // only tiles are valid at this stage?? TODO
            layout.unsetImageBounds();
            layout.unsetValid(ImageLayout.COLOR_MODEL_MASK&ImageLayout.SAMPLE_MODEL_MASK);
        }
        // this prevents users from overriding lenient hint
        this.hints.put(Hints.LENIENT_DATUM_SHIFT, Boolean.TRUE);
        this.hints.put(Hints.COVERAGE_PROCESSING_VIEW, ViewType.SAME);
       
View Full Code Here

        // Selection of a colormodel associated with the layout
        ColorModel cm = layout.getColorModel(null);

        if (cm != null && !JDKWorkarounds.areCompatibleDataModels(sm, cm)) {
            // Clear the mask bit if incompatible.
            layout.unsetValid(ImageLayout.COLOR_MODEL_MASK);
        }

        if ((cm == null || !cm.hasAlpha()) && sm instanceof ComponentSampleModel) {
            cm = getDefaultColorModel(sm);
            layout.setColorModel(cm);
View Full Code Here

        // Selection of a colormodel associated with the layout
        ColorModel cm = layout.getColorModel(null);

        if (cm != null && !JDKWorkarounds.areCompatibleDataModels(sm, cm)) {
            // Clear the mask bit if incompatible.
            layout.unsetValid(ImageLayout.COLOR_MODEL_MASK);
        }

        if ((cm == null || !cm.hasAlpha()) && sm instanceof ComponentSampleModel) {
            cm = getDefaultColorModel(sm);
            layout.setColorModel(cm);
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.