Package javax.media.jai

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


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

        return il;
    }
View Full Code Here


                }
            }

            // Unset SampleModel if needed.
            if(unsetSampleModel) {
                mosaicLayout.unsetValid(ImageLayout.SAMPLE_MODEL_MASK);
            }
        }

        return mosaicLayout;
    }
View Full Code Here

        ColorModel colorModel = layout.getColorModel(null);
        if(colorModel != null &&
           !JDKWorkarounds.areCompatibleDataModels(layout.getSampleModel(src),
                                                   colorModel)) {
            // Clear the mask bit if incompatible.
            layout.unsetValid(ImageLayout.COLOR_MODEL_MASK);
        }

        // Check whether anything but the ColorModel is changing.
        if (layout.getSampleModel(src) == src.getSampleModel() &&
            layout.getMinX(src) == src.getMinX() &&
View Full Code Here

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

        // Set an IndexColorModel on the image if:
        // a. none is provided in the layout;
View Full Code Here

/*      */         }
/*      */
/*      */       }
/*      */
/*  192 */       if (unsetSampleModel) {
/*  193 */         mosaicLayout.unsetValid(256);
/*      */       }
/*      */     }
/*      */
/*  197 */     return mosaicLayout;
/*      */   }
View Full Code Here

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

/* 119 */       il.setSampleModel(sm);
/*     */
/* 122 */       ColorModel cm = il.getColorModel(null);
/* 123 */       if ((cm != null) && (!JDKWorkarounds.areCompatibleDataModels(sm, cm)))
/*     */       {
/* 126 */         il.unsetValid(512);
/*     */       }
/*     */
/*     */     }
/*     */
/* 136 */     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

/* 128 */       il.setSampleModel(sm);
/*     */
/* 131 */       ColorModel cm = il.getColorModel(null);
/* 132 */       if ((cm != null) && (!JDKWorkarounds.areCompatibleDataModels(sm, cm)))
/*     */       {
/* 135 */         il.unsetValid(512);
/*     */       }
/*     */
/*     */     }
/*     */
/* 143 */     if (((layout == null) || (!il.isValid(512))) && (source.getSampleModel().getDataType() == 0) && (sm.getDataType() == 0) && (colormap.getDataType() == 0) && (colormap.getNumBands() == 3))
View Full Code Here

/* 116 */       il.setSampleModel(sm);
/*     */
/* 119 */       ColorModel cm = il.getColorModel(null);
/* 120 */       if ((cm != null) && (!JDKWorkarounds.areCompatibleDataModels(sm, cm)))
/*     */       {
/* 123 */         il.unsetValid(512);
/*     */       }
/*     */     }
/*     */
/* 127 */     return il;
/*     */   }
View Full Code Here

/*  86 */       il.setSampleModel(sm);
/*     */
/*  89 */       ColorModel cm = il.getColorModel(null);
/*  90 */       if ((cm != null) && (!JDKWorkarounds.areCompatibleDataModels(sm, cm)))
/*     */       {
/*  93 */         il.unsetValid(512);
/*     */       }
/*     */     }
/*     */
/*  97 */     return il;
/*     */   }
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.