Examples of scaled()


Examples of com.sun.dtv.lwuit.Image.scaled()

                g.fillRect(x, y, width, height, s.getBgTransparency());
            }
        } else {
            if (s.isScaleImage()) {
                if (bgImage.getWidth() != width || bgImage.getHeight() != height) {
                    bgImage = bgImage.scaled(width, height);
                    s.setBgImage(bgImage, true);
                }
            } else {
                int iW = bgImage.getWidth();
                int iH = bgImage.getHeight();
View Full Code Here

Examples of com.sun.lwuit.Image.scaled()

              status.getStyle().setFgColor(0xFF0000);
            }*/
            Image img = Jid.createAvatar(person.getAvatar());
            if (img.getWidth() != 32)
              img = img.scaled(32, 32);
            pic.setIcon(img);
            pic.setPreferredSize(new Dimension(32,32));
            this.setPreferredSize(new Dimension(display_width, 40));
            return this;
        }
View Full Code Here

Examples of com.trolltech.qt.gui.QImage.scaled()

          return null;
      }
      else {
        QImage img = listManager.getThumbnail(note.getGuid());
        if (img != null)
          return img.scaled(Global.largeThumbnailSize,
            AspectRatioMode.KeepAspectRatio, TransformationMode.SmoothTransformation);
        else
          return null;
      }
       
View Full Code Here

Examples of com.trolltech.qt.gui.QPixmap.scaled()

        return null;
      if (Global.getListView() == Global.View_List_Wide) {
//        QImage img = listManager.getThumbnail(note.getGuid());
        QPixmap img = listManager.getThumbnailPixmap(note.getGuid());
        if (img != null)
          return img.scaled(Global.smallThumbnailSize,
            AspectRatioMode.KeepAspectRatio, TransformationMode.SmoothTransformation);
        else
          return null;
      }
      else {
View Full Code Here

Examples of com.trolltech.qt.gui.QPixmap.scaled()

          return null;
      }
      else {
        QImage img = listManager.getThumbnail(note.getGuid());
        if (img != null)
          return img.scaled(Global.largeThumbnailSize,
            AspectRatioMode.KeepAspectRatio, TransformationMode.SmoothTransformation);
        else
          return null;
      }
       
View Full Code Here

Examples of com.trolltech.qt.gui.QPixmap.scaled()

      try {
        if (query.getBlob(1) != null) {
          QByteArray data = new QByteArray(query.getBlob(1));
          QPixmap img = new QPixmap();
          if (img.loadFromData(data)) {
            img = img.scaled(Global.largeThumbnailSize);
            map.put(query.valueString(0), img);
          }
        } 
      } catch (java.lang.IllegalArgumentException e) {
        logger.log(logger.HIGH, "Error retrieving thumbnail " +e.getMessage());
View Full Code Here

Examples of ij.measure.Calibration.scaled()

      s += "; ";
    }
    if (running2) return s;
      int type = imp.getType();
      Calibration cal = imp.getCalibration();
      if (cal.scaled())
        s += IJ.d2s(imp.getWidth()*cal.pixelWidth,2) + "x" + IJ.d2s(imp.getHeight()*cal.pixelHeight,2)
       + " " + cal.getUnits() + " (" + imp.getWidth() + "x" + imp.getHeight() + "); ";
      else
        s += imp.getWidth() + "x" + imp.getHeight() + " pixels; ";
    int size = (imp.getWidth()*imp.getHeight()*imp.getStackSize())/1024;
 
View Full Code Here

Examples of ij.measure.Calibration.scaled()

    if (virtual) {
      IJ.showProgress(1.0);
      imp.setTitle(imp.getTitle());
    }
    Calibration cal = imp.getCalibration();
    if (cal.scaled()) cal.pixelDepth *= factor;
  }
 
  public void reduceHyperstack(ImagePlus imp, int factor, boolean reduceSlices) {
    int channels = imp.getNChannels();
    int slices = imp.getNSlices();
View Full Code Here

Examples of ij.measure.Calibration.scaled()

        }
      }
    }
    imp.setStack(stack2, channels, slices2, frames2);
    Calibration cal = imp.getCalibration();
    if (cal.scaled()) cal.pixelDepth *= zfactor;
    if (virtual) imp.setTitle(imp.getTitle());
    IJ.showProgress(1.0);
  }

}
View Full Code Here

Examples of ij.measure.Calibration.scaled()

      Rectangle r = roi.getBounds();
      width = r.width;
      height = r.height;
      xRoi = r.x;
      yRoi = r.y;
      if (scaledUnits && cal.scaled()) {
        xRoi = xRoi*cal.pixelWidth;
        yRoi = yRoi*cal.pixelHeight;
        width = width*cal.pixelWidth;
        height = height*cal.pixelHeight;
      }
 
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.