Package com.trolltech.qt.gui

Examples of com.trolltech.qt.gui.QMatrix


  }
  public void rotateImageRight() {
    QWebSettings.setMaximumPagesInCache(0);
    QWebSettings.setObjectCacheCapacities(0, 0, 0);
    QImage image = new QImage(selectedFile);
    QMatrix matrix = new QMatrix();
    matrix.rotate( 90.0 );
    image = image.transformed(matrix);
    image.save(selectedFile);
    QWebSettings.setMaximumPagesInCache(0);
    QWebSettings.setObjectCacheCapacities(0, 0, 0);
    browser.setHtml(browser.page().mainFrame().toHtml());
View Full Code Here


    resourceSignal.contentChanged.emit(selectedFile);

  }
  public void rotateImageLeft() {
    QImage image = new QImage(selectedFile);
    QMatrix matrix = new QMatrix();
    matrix.rotate( -90.0 );
    image = image.transformed(matrix);
    image.save(selectedFile);
    browser.setHtml(browser.page().mainFrame().toHtml());
    browser.reload();
    contentChanged();
View Full Code Here

TOP

Related Classes of com.trolltech.qt.gui.QMatrix

Copyright © 2018 www.massapicom. 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.