Package javax.media.jai

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


        // Create or clone the ImageLayout.
        if(layout == null) {
            layout = new ImageLayout(src);
        } else {
            layout = (ImageLayout)layout.clone();
        }

  boolean isDataTypeChange = false;

        // Get prospective destination SampleModel.
View Full Code Here


/*     */     }
/*     */
/*  77 */     if (layout == null)
/*  78 */       layout = new ImageLayout(src);
/*     */     else {
/*  80 */       layout = (ImageLayout)layout.clone();
/*     */     }
/*     */
/*  83 */     boolean isDataTypeChange = false;
/*     */
/*  86 */     SampleModel sampleModel = layout.getSampleModel(src);
View Full Code Here

      targetHints = new RenderingHints(null);
    if (parameters.hints != null)
      targetHints.add(parameters.hints);
    ImageLayout layout = (ImageLayout) targetHints.get(JAI.KEY_IMAGE_LAYOUT);
    if (layout != null) {
      layout = (ImageLayout) layout.clone();
    } else {
      layout = new ImageLayout(sourceImage);
      layout.unsetTileLayout();
      // At this point, only the color model and sample model are left
      // valid.
View Full Code Here

        if (hints != null) {
            targetHints.add(hints);
        }
        ImageLayout layout = (ImageLayout) targetHints.get(JAI.KEY_IMAGE_LAYOUT);
        if (layout != null) {
            layout = (ImageLayout) layout.clone();
        } else {
            layout = new ImageLayout();
            // Do not inherit the color model and sample model from the 'sourceImage';
            // Let the operation decide itself. This is necessary in case we change the
            // source, as we do if we choose the "Mosaic" operation.
View Full Code Here

        final RenderedImage sourceImage,
            final RenderingHints hints) {
     
        ImageLayout layout = (ImageLayout) hints.get(JAI.KEY_IMAGE_LAYOUT);
    if (layout != null) {
        layout = (ImageLayout) layout.clone();
     } else {
         layout = new ImageLayout(sourceImage);
         layout.unsetTileLayout();
         // At this point, only the color model and sample model are left
         // valid.
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.