daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void mywindow::on_ZoomOut_clicked()
  2. {
  3.     --zoomFactor;
  4.     zoomImg=Tools::zoomOutFactor(resultImg,3,zoomFactor);
  5.  
  6.     Mat1b zoomImgB=Tools::matrix1sTo1b(zoomImg);
  7.     QImage qzoom((uchar*)zoomImgB.data,zoomImgB.cols,zoomImgB.rows,zoomImgB.step,QImage::Format_Indexed8);
  8.     qzoomImg=qzoom;
  9.  
  10.     QGraphicsScene *scene =  new QGraphicsScene;
  11.     QPixmap pixmap=QPixmap::fromImage(qzoomImg);
  12.     scene->addPixmap(pixmap);
  13.     ui->gravOut->setScene(scene);
  14.     ui->gravOut->show();
  15. }
  16.  
  17. void mywindow::on_zoomin_clicked()
  18. {
  19.     ++zoomFactor;
  20.     zoomImg=Tools::zoomInFactor(resultImg,3,zoomFactor);
  21.  
  22.     Mat1b zoomImgB=Tools::matrix1sTo1b(zoomImg);
  23.     QImage qzoom((uchar*)zoomImgB.data,zoomImgB.cols,zoomImgB.rows,zoomImgB.step,QImage::Format_Indexed8);
  24.     qzoomImg=qzoom;
  25.  
  26.     QGraphicsScene *scene =  new QGraphicsScene;
  27.     QPixmap pixmap=QPixmap::fromImage(qzoomImg);
  28.     scene->addPixmap(pixmap);
  29.     ui->gravOut->setScene(scene);
  30.     ui->gravOut->show();
  31. }
  32. void mywindow::on_spinBox_editingFinished()
  33. {
  34.      rotateDegree=ui->spinBox->value();
  35. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top