void ImageViewer::horFilp() { image = image.mirrored(true, false); imageLabel->setPixmap(QPixmap::fromImage(image)); }
void ImageViewer::verFilp() { image = image.mirrored(false, true); imageLabel->setPixmap(QPixmap::fromImage(image)); }
void ImageViewer::clockwise() { QMatrix matrix; matrix.rotate(90.0); image = image.transformed(matrix,Qt::FastTransformation); imageLabel->setPixmap(QPixmap::fromImage(image)); }
void ImageViewer::anticlockwise() { QMatrix matrix; matrix.rotate(-90.0); image = image.transformed(matrix,Qt::FastTransformation); imageLabel->setPixmap(QPixmap::fromImage(image)); }
|