Examples of toImage()


Examples of com.aspose.cells.Chart.toImage()

    //Get the Chart image
    ImageOrPrintOptions imgOpts = new ImageOrPrintOptions();
    imgOpts.setImageFormat(ImageFormat.getPng());

    //Save the chart image file.
    chart.toImage(new FileOutputStream("data/AsposeChartImage.png"), imgOpts);
 
}
View Full Code Here

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

          if (!buffer.open(QIODevice.OpenModeFlag.ReadWrite)) {
            logger.log(logger.EXTREME, "Failure to open buffer.  Aborting.");
            return;
          }
          QPixmap p = icon.pixmap(32, 32);
          QImage i = p.toImage();
           i.save(buffer, filetype.toUpperCase());
           buffer.close();
           QByteArray b = new QByteArray(buffer.buffer());
           if (!b.isNull() && !b.isEmpty())
             query.bindValue(":icon", b.toByteArray());
View Full Code Here

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

          if (!buffer.open(QIODevice.OpenModeFlag.ReadWrite)) {
            logger.log(logger.EXTREME, "Failure to open buffer.  Aborting.");
            return;
          }
          QPixmap p = icon.pixmap(32, 32);
          QImage i = p.toImage();
           i.save(buffer, filetype.toUpperCase());
           buffer.close();
           QByteArray b = new QByteArray(buffer.buffer());
           if (!b.isNull() && !b.isEmpty())
             query.bindValue(":icon", b.toByteArray());
View Full Code Here

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

          if (!buffer.open(QIODevice.OpenModeFlag.ReadWrite)) {
            logger.log(logger.EXTREME, "Failure to open buffer.  Aborting.");
            return;
          }
          QPixmap p = icon.pixmap(32, 32);
          QImage i = p.toImage();
           i.save(buffer, type.toUpperCase());
           buffer.close();
           QByteArray b = new QByteArray(buffer.buffer());
           if (!b.isNull() && !b.isEmpty())
             query.bindValue(":icon", b.toByteArray());
View Full Code Here

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

          if (!buffer.open(QIODevice.OpenModeFlag.ReadWrite)) {
            logger.log(logger.EXTREME, "Failure to open buffer.  Aborting.");
            return;
          }
          QPixmap p = icon.pixmap(32, 32);
          QImage i = p.toImage();
           i.save(buffer, type.toUpperCase());
           buffer.close();
           QByteArray b = new QByteArray(buffer.buffer());
           if (!b.isNull() && !b.isEmpty())
             query.bindValue(":icon", b.toByteArray());
View Full Code Here

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

          if (!buffer.open(QIODevice.OpenModeFlag.ReadWrite)) {
            logger.log(logger.EXTREME, "Failure to open buffer.  Aborting.");
            return;
          }
          QPixmap p = icon.pixmap(32, 32);
          QImage i = p.toImage();
           i.save(buffer, type.toUpperCase());
           buffer.close();
           QByteArray b = new QByteArray(buffer.buffer());
           if (!b.isNull() && !b.isEmpty())
             query.bindValue(":icon", b.toByteArray());
View Full Code Here

Examples of com.xuggle.xuggler.video.IConverter.toImage()

      // if the image is null, convert the picture to the image

      if (null == image)
      {
        IConverter converter = mConverters.get(mStreamIndex);
        image = converter.toImage(picture);
      }

      if (mShowStats)
      {
        drawStats(picture, image);
View Full Code Here

Examples of com.xuggle.xuggler.video.IConverter.toImage()

    IConverter converter = ConverterFactory.createConverter(
      ConverterFactory.XUGGLER_BGR_24, picture);

    // return the conveter

    return converter.toImage(picture);
  }
 
  /**
   * Convert a {@link BufferedImage} to an {@link IVideoPicture} of
   * type {@link IPixelFormat.Type#BGR24}.  The {@link BufferedImage} must be a
View Full Code Here

Examples of com.xuggle.xuggler.video.IConverter.toImage()

      // if the image is null, convert the picture to the image

      if (null == image)
      {
        IConverter converter = mConverters.get(mStreamIndex);
        image = converter.toImage(picture);
      }

      if (mShowStats)
      {
        drawStats(picture, image);
View Full Code Here

Examples of dwlab.base.images.ImageBuffer.toImage()

      buffer.clear( 0xFF );
      for( int n = 0; n < 4; n++ ) {
        buffer.setPixel( n, 0, 0xFFFFFFFF );
        buffer.setPixel( 0, n, 0xFFFFFFFF );
      }
      lineImage = buffer.toImage();
    }
  }
 
 
  public static void drawMALine( double x1, double y1, double x2, double y2, int pos ) {
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.