Examples of resize()


Examples of com.jada.util.ImageScaler.resize()

    }
   
    ImageScaler scaler = null;
    try {
      scaler = new ImageScaler(fileData, file.getContentType());
      scaler.resize(600);
    }
    catch (OutOfMemoryError outOfMemoryError) {
      jsonResult.put("status", Constants.WEBSERVICE_STATUS_FAILED);
      jsonResult.put("message", resources.getMessage("content.error.image.size"));
      streamWebService(response, jsonResult.toHtmlString());
View Full Code Here

Examples of com.jada.util.ImageScaler.resize()

            break;
          }
          outputStream.write(buffer, 0, i);
        }
        ImageScaler scaler = new ImageScaler(outputStream.toByteArray(), "image/jpeg");
        scaler.resize(600);
        itemImage.setImageValue(scaler.getBytes());
        itemImage.setDefaultImage(itemSimpleImage.getDefaultImage());
        itemLanguage.getImages().add(itemImage);
      }
    }
View Full Code Here

Examples of com.pointcliki.ui.Button.resize()

        Map map = scene(EditorScene.class).map();
        for (Logic l: map.selectedLogics()) map.deselectLogic(l);
        return Minion.CONTINUE;
      }
    }, "new logic");
    create.resize(new Vector2f(155, 24));
    addChild(create, 2);
   
    Button delete = new Button(new Minion<SelectionEvent>() {
      @Override
      public long run(Dispatcher<SelectionEvent> dispatcher, String type, SelectionEvent event) {
View Full Code Here

Examples of com.pointcliki.ui.DropDownMenu.resize()

        return Minion.CONTINUE;
      }
    });
    for (String s: JSONObject.getNames(fLogics)) type.add(s);
    type.select(fType);
    type.resize(new Vector2f(155, 24));
    addChild(type, 10);
   
    final DropDownMenu subtype = new DropDownMenu(new Minion<SelectionEvent>() {
      @Override
      public long run(Dispatcher<SelectionEvent> dispatcher, String type, SelectionEvent event) {
View Full Code Here

Examples of com.pointcliki.ui.TextBox.resize()

  public void init() {
    resize(new Vector2f(164, 740));
   
    final TextBox title = new TextBox(scene(EditorScene.class).map().name(), "level title");
    title.resize(new Vector2f(155, 24));
    addChild(title, 1);
    title.setChangedMinion(new Minion<IEvent> () {
      public long run(Dispatcher<IEvent> dispatcher, String type, IEvent event) {
        scene(EditorScene.class).map().name(title.value());
        return Minion.CONTINUE;
View Full Code Here

Examples of com.salesforce.phoenix.memory.MemoryManager.MemoryChunk.resize()

                maxSize = Math.max(length, maxSize);
            }
            spoolTo.close();
            if (spoolTo.isInMemory()) {
                byte[] data = spoolTo.getData();
                chunk.resize(data.length);
                spoolFrom = new InMemoryResultIterator(data, chunk);
            } else {
                spoolFrom = new OnDiskResultIterator(maxSize, spoolTo.getFile());
                usedOnDiskIterator = true;
            }
View Full Code Here

Examples of com.xensource.xenapi.VDI.resize()

        String volid = cmd.getPath();
        long newSize = cmd.getNewSize();

        try {
            VDI vdi = getVDIbyUuid(conn, volid);
            vdi.resize(conn, newSize);
            return new ResizeVolumeAnswer(cmd, true, "success", newSize);
        } catch (Exception e) {
            s_logger.warn("Unable to resize volume",e);
            String error = "failed to resize volume:"  +e;
            return new ResizeVolumeAnswer(cmd, false, error );
View Full Code Here

Examples of database.Configuration.resize()

          dbSid = Integer.parseInt(sid.substring(0, sid.indexOf('@')));

         
          int tmpId = conf.getId(rid, login);
          result = result && conf.move(tmpId, windows[i].getX(), windows[i].getY());
          result = result && conf.resize(tmpId, windows[i].getW(), windows[i].getH());
          if (!windows[i].getBar().equals(conf.getWindow(tmpId).isMinimized()))
            result = result && conf.reminimize(tmpId);
          if (!windows[i].getFullscreen().equals(conf.getWindow(tmpId).isMaximized()))
            result = result && conf.remaximize(tmpId);
        }
View Full Code Here

Examples of ij.process.ImageProcessor.resize()

        }
        int type = op.getFileType(tmp.getPath());
        tmp.delete();
        ImageProcessor processor = ip.getProcessor();
        if (ip.getWidth() > ip.getHeight()) {
            processor = processor.resize(size, ip.getHeight()*size/ip.getWidth());
        } else {
            processor = processor.resize(ip.getWidth()*size/ip.getHeight(), size);
        }
        ip.setProcessor(null,processor);

View Full Code Here

Examples of ij.process.ImageProcessor.resize()

        tmp.delete();
        ImageProcessor processor = ip.getProcessor();
        if (ip.getWidth() > ip.getHeight()) {
            processor = processor.resize(size, ip.getHeight()*size/ip.getWidth());
        } else {
            processor = processor.resize(ip.getWidth()*size/ip.getHeight(), size);
        }
        ip.setProcessor(null,processor);

        return save(type,ip,outputFile);
    }
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.