Examples of unsetTileLayout()


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

    final ParameterBlockJAI pbj = new ParameterBlockJAI("format");
    pbj.addSource(image);
    pbj.setParameter("dataType", image.getSampleModel().getTransferType());

    final ImageLayout layout = new ImageLayout(image);
    layout.unsetTileLayout();
    layout.setTileGridXOffset(0);
    layout.setTileGridYOffset(0);
    layout.setTileHeight(image.getHeight());
    layout.setTileWidth(image.getWidth());
    layout.setValid(ImageLayout.TILE_GRID_X_OFFSET_MASK
View Full Code Here

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

    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.
    }
    if ((layout.getValidMask() & (ImageLayout.TILE_WIDTH_MASK
        | ImageLayout.TILE_HEIGHT_MASK
View Full Code Here

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

        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.
     }
    // crop will ignore minx, miny width and height
    if ((layout.getValidMask() &
View Full Code Here

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

        {
            // If the image was already tiled, reuse the same tile size.
            // Otherwise, compute default tile size.  If a default tile
            // size can't be computed, it will be left unset.
            if (layout != null) {
                layout = layout.unsetTileLayout();
            }
            Dimension defaultSize = JAI.getDefaultTileSize();
            if (defaultSize == null) {
                defaultSize = GEOTOOLS_DEFAULT_TILE_SIZE;
            }
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.