Examples of resize()


Examples of org.exist.storage.cache.Cache.resize()

                        if( LOG.isDebugEnabled() ) {
                            final NumberFormat nf = NumberFormat.getNumberInstance();
                            LOG.debug( "Shrinking cache: " + cache.getFileName() + " (a " + cache.getClass().getName() + ") to " + nf.format( cache.getBuffers() ) );
                        }
                        currentPageCount -= cache.getBuffers();
                        cache.resize( getDefaultInitialSize() );
                        currentPageCount += getDefaultInitialSize();
                    }
                }
            }
        }
View Full Code Here

Examples of org.im4java.core.IMOperation.resize()

      e2.printStackTrace();
    }

    IMOperation op = new IMOperation();
    op.addImage(tmpTiff.getAbsolutePath());
    op.resize(maxHeight, maxWidth);
    op.addImage(tmpJp2.getAbsolutePath());

    ConvertCmd convert = new ConvertCmd();
    try {
      convert.run(op);
View Full Code Here

Examples of org.im4java.core.IMOperation.resize()

            // create the operation, add images and operators/options
            IMOperation op = new IMOperation();
            op.addImage(getFile(iw).getPath());

            if(square) {
                op.resize(size,size,"^");
                op.gravity("center");
                op.crop(size,size,0,0);
            } else {
                op.resize(size,size);
            }
View Full Code Here

Examples of org.im4java.core.IMOperation.resize()

            if(square) {
                op.resize(size,size,"^");
                op.gravity("center");
                op.crop(size,size,0,0);
            } else {
                op.resize(size,size);
            }

            op.addImage(outputFile.getPath());

            cmd.run(op);
View Full Code Here

Examples of org.im4java.core.IMOperation.resize()

            ConvertCmd cmd = new ConvertCmd();

            // create the operation, add images and operators/options
            IMOperation op = new IMOperation();
            op.addImage(getFile(i).getPath());
            op.resize(width, height);
            op.addImage(outputFile.getPath());

            cmd.run(op);
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

Examples of org.jruby.RubyString.resize()

                string = args[0].convertToString();
                if ((ptr.flags & OpenFile.WRITABLE) != 0 && string.isFrozen()) {
                    throw runtime.newErrnoEACCESError("Permission denied");
                }
                if (trunc) {
                    string.resize(0);
                }
                break;
            case 1:
                string = args[0].convertToString();
                ptr.flags = string.isFrozen() ? OpenFile.READABLE : OpenFile.READWRITE;
View Full Code Here

Examples of org.libvirt.StorageVol.resize()

                    }
                    if (shrinkOk) {
                        flags = 4;
                    }

                    v.resize(newSize, flags);
                } catch (LibvirtException e) {
                    return new ResizeVolumeAnswer(cmd, false, e.toString());
                }
            } else {
                s_logger.debug("Volume " + path + " is of the type LVM and can not be resized using libvirt. Invoking resize script.");
View Full Code Here

Examples of org.nuxeo.ecm.platform.picture.api.ImagingService.resize()

        float wScale = (float) RESIZED_IMAGE_WIDTH / width;
        float hscale = (float) RESIZED_IMAGE_HEIGHT / height;
        float scale = Math.min(wScale, hscale);

        if (scale < 1) {
            image = service.resize(image, "jpg", (int) (width * scale),
                    (int) (height * scale), info.getDepth());
            image.setMimeType("image/jpeg"); // XXX : Should be automatic
            doc.setPropertyValue(CONTENT_PICTURE_PICTURE_PROPERTY,
                    (Serializable) image);
        }
View Full Code Here

Examples of org.rascalmpl.library.vis.figure.Figure.resize()

      pr.size.set(major,majorSpaceForProjection * pr.prop.get2DReal(major, SHRINK ));
      pr.size.setMax(pr.minSize);
      pr.localLocation.set(minor,projectFromMinor + (pFrom.size.get(minor) - pr.size.get(minor)) * pr.prop.get2DReal(minor, ALIGN));
      pr.localLocation.set(major,majorProjectionOffset + (majorSpaceForProjection - pr.size.get(major))* pr.prop.get2DReal(major, ALIGN));
      pr.globalLocation.set(globalLocation);
      pr.resize(view, transform);
    }
  }
}
View Full Code Here

Examples of org.timepedia.chronoscope.client.canvas.View.resize()

    int[] dim = calcChartDimension();

    // Resizing the chart once displayed currently unsupported
    final View view = chartPanel.getChart().getView();
    if(view!=null)
      view.resize(dim[0], dim[1]);

    resizeChartArea(view);
   
    return view;
  }
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.