/**********Creating a image and all the images to be drawn into it********************/
resultImage
= QImage(resultSize,
QImage::Format_ARGB32_Premultiplied);
/*************************Top Image ****************************************************/
QImage image_Radar
(get_bmap,
512,
512,
QImage::Format_ARGB32_Premultiplied);
painter.drawImage(162,68,image_Radar);
painter.
setCompositionMode(QPainter::CompositionMode_Overlay);
/************************Middle Image **************************************/
painter.
setPen(QPen(Qt
::yellow,
3,Qt
::SolidLine));
painter.drawEllipse(646,538,90,90);
painter.
setPen(QPen(Qt
::magenta,
3,Qt
::SolidLine));
painter.drawEllipse(586,478,210,210);
painter.
setPen(QPen(Qt
::darkGray,
3,Qt
::SolidLine));
painter.drawEllipse(526,418,340,340);
painter.
setPen(QPen(Qt
::green,
3,Qt
::SolidLine));
painter.drawEllipse(466,358,460,460);
painter.
setPen(QPen(Qt
::blue,
3,Qt
::SolidLine));
painter.drawEllipse(406, 298,580,580);
painter.
setPen(QPen(Qt
::cyan,
3,Qt
::SolidLine));
painter.drawEllipse(346,238,700,700);
painter.
setPen(QPen(Qt
::lightGray,
3,Qt
::SolidLine));
painter.drawEllipse(286,178,820,820);
painter.
setPen(QPen(Qt
::darkRed,
3,Qt
::SolidLine));
painter.drawEllipse(226,118,940,940);
painter.
setPen(QPen(Qt
::green,
3,Qt
::SolidLine));
painter.drawEllipse(166,58,1060,1060);
painter.
setPen(QPen(Qt
::red,
3,Qt
::SolidLine));
painter.drawEllipse(106,-2,1180,1180);
/**********************Bottom Image **********************************/
image_src.load("/aegean-60km.bmp");
painter.drawImage(0, 0, image_src);
/******************************************************************/
painter.end();
label
->setBackgroundRole
(QPalette::Base);
label
->setPixmap
(QPixmap::fromImage(resultImage
));
label->setScaledContents(true); */
/**********Creating a image and all the images to be drawn into it********************/
QImage resultImage;
resultImage = QImage(resultSize,QImage::Format_ARGB32_Premultiplied);
QPainter painter(&resultImage);
/*************************Top Image ****************************************************/
QImage image_Radar(get_bmap,512,512,QImage::Format_ARGB32_Premultiplied);
painter.drawImage(162,68,image_Radar);
painter.setCompositionMode(QPainter::CompositionMode_Overlay);
/************************Middle Image **************************************/
painter.setPen(QPen(Qt::yellow,3,Qt::SolidLine));
painter.drawEllipse(646,538,90,90);
painter.setPen(QPen(Qt::magenta,3,Qt::SolidLine));
painter.drawEllipse(586,478,210,210);
painter.setPen(QPen(Qt::darkGray,3,Qt::SolidLine));
painter.drawEllipse(526,418,340,340);
painter.setPen(QPen(Qt::green,3,Qt::SolidLine));
painter.drawEllipse(466,358,460,460);
painter.setPen(QPen(Qt::blue,3,Qt::SolidLine));
painter.drawEllipse(406, 298,580,580);
painter.setPen(QPen(Qt::cyan,3,Qt::SolidLine));
painter.drawEllipse(346,238,700,700);
painter.setPen(QPen(Qt::lightGray,3,Qt::SolidLine));
painter.drawEllipse(286,178,820,820);
painter.setPen(QPen(Qt::darkRed,3,Qt::SolidLine));
painter.drawEllipse(226,118,940,940);
painter.setPen(QPen(Qt::green,3,Qt::SolidLine));
painter.drawEllipse(166,58,1060,1060);
painter.setPen(QPen(Qt::red,3,Qt::SolidLine));
painter.drawEllipse(106,-2,1180,1180);
/**********************Bottom Image **********************************/
QImage image_src;
image_src.load("/aegean-60km.bmp");
painter.drawImage(0, 0, image_src);
/******************************************************************/
painter.end();
label->setBackgroundRole(QPalette::Base);
label->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
label->setPixmap(QPixmap::fromImage(resultImage));
label->setScaledContents(true); */
To copy to clipboard, switch view to plain text mode
Bookmarks