Package com.trolltech.qt.gui

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


          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

      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

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.