Examples of resize()


Examples of com.ardor3d.renderer.Camera.resize()

                public void componentResized(final ComponentEvent e) {
                    GameTaskQueueManager.getManager(_glCanvas.getCanvasRenderer().getRenderContext()).update(
                            new Callable<Void>() {
                                public Void call() throws Exception {
                                    final Camera cam = _glCanvas.getCanvasRenderer().getCamera();
                                    cam.resize(getWidth(), getHeight());
                                    cam.setFrustumPerspective(cam.getFovY(), getWidth() / (double) getHeight(),
                                            cam.getFrustumNear(), cam.getFrustumFar());
                                    appletResized(getWidth(), getHeight());
                                    return null;
                                }
View Full Code Here

Examples of com.ardor3d.scenegraph.shape.Quad.resize()

        final Torus torus = new Torus("Torus", 50, 50, 10, 25);
        torus.updateModelBound();
        torus.setRenderState(ts);

        final Quad quad = new Quad("Quad");
        quad.resize(150, 120);
        quad.updateModelBound();
        quad.setRenderState(bgts);

        final Teapot teapot = new Teapot();
        teapot.setScale(20);
View Full Code Here

Examples of com.badlogic.gdx.ApplicationListener.resize()

    height = Math.max(1, height);
    this.width = width;
    this.height = height;
    Gdx.gl.glViewport(0, 0, width, height);
    ApplicationListener listener = Gdx.app.getApplicationListener();
    if (listener != null) listener.resize(width, height);
    requestRendering();
  }

  void positionChanged (int x, int y) {
    this.x = x;
View Full Code Here

Examples of com.ceph.rbd.RbdImage.resize()

                    IoCTX io = r.ioCtxCreate(pool.getSourceDir());
                    Rbd rbd = new Rbd(io);
                    RbdImage image = rbd.open(vol.getName());

                    s_logger.debug("Resizing RBD volume " + vol.getName() " to " + newSize + " bytes");
                    image.resize(newSize);
                    rbd.close(image);

                    r.ioCtxDestroy(io);
                    s_logger.debug("Succesfully resized RBD volume " + vol.getName() " to " + newSize + " bytes");
                } catch (RadosException e) {
View Full Code Here

Examples of com.ceph.rbd.RbdImage.resize()

                    IoCTX io = r.ioCtxCreate(pool.getSourceDir());
                    Rbd rbd = new Rbd(io);
                    RbdImage image = rbd.open(vol.getName());

                    s_logger.debug("Resizing RBD volume " + vol.getName() " to " + newSize + " bytes");
                    image.resize(newSize);
                    rbd.close(image);

                    r.ioCtxDestroy(io);
                    s_logger.debug("Succesfully resized RBD volume " + vol.getName() " to " + newSize + " bytes");
                } catch (RadosException e) {
View Full Code Here

Examples of com.day.image.Layer.resize()

        int width = Math.max((int) titleExtent.getWidth(), (int) subtitleExtent.getWidth());

        Layer text = new Layer(width, (int) titleExtent.getHeight() + 40, new Color(0x01ffffff, true));
        text.setPaint(titleColor);
        text.drawText(0, titleBase, 0, 0, title, titleFont, Font.ALIGN_LEFT | Font.ALIGN_BASE, 0, 0);
        text.resize(text.getWidth() / scale, text.getHeight() / scale);
        text.setX(0);
        text.setY(0);

        if (subtitle.length() > 0) {
            // draw the subtitle normal sized
View Full Code Here

Examples of com.gloopics.g3viewer.client.canvas.Canvas.resize()

    float widthRatio = imageWidth/((float)m_ResizeOptions.getMaxWidth());
    float heightRatio = imageHeight/((float)m_ResizeOptions.getMaxHeight());
   
    if (widthRatio > heightRatio){
      if (widthRatio > 1) {
        upThumb.resize(m_ResizeOptions.getMaxWidth(), (int)(imageHeight / widthRatio) );
        m_UploadFile.uploadBlob(upThumb.encode());
        return;
      }
      m_UploadFile.uploadBlob(m_Blob);
    }
View Full Code Here

Examples of com.google.gwt.user.client.ui.Grid.resize()

    gileadSampleApplicationLabel.setStyleName("title");
    verticalPanel.add(gileadSampleApplicationLabel);

    final Grid grid = new Grid();
    verticalPanel.add(grid);
    grid.resize(6, 3);

    final Label loginLabel = new Label("Login");
    grid.setWidget(0, 0, loginLabel);

    final Label firstNameLabel = new Label("First Name");
View Full Code Here

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()

      json.put("filename", resources.getMessage("error.string.required"));
      streamWebService(response, json.toHtmlString());
      return null;
    }
    ImageScaler scaler = new ImageScaler(fileData, file.getContentType());
    scaler.resize(600);

    initSiteProfiles(form, site);
        if (form.isSiteProfileClassDefault()) {
        siteDomain.getSiteDomainLanguage().setSiteLogoValue(scaler.getBytes());
        siteDomain.getSiteDomainLanguage().setSiteLogoContentType("image/jpeg");
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.