Examples of unsetValid()


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

            // Check ColorModel.
            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

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

                // Clear the ColorModel mask if needed.
                ColorModel cm = layout.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

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);
            }
        }

        // Determine whether a larger bit depth is needed.
        int numColorMapBands = colorMap.getNumBands();
View Full Code Here

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);
            }
        }

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

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

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

                }
            }

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

        return mosaicLayout;
    }
View Full Code Here

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

        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

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);
            }
        }

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

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

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

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

/* 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
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.