6 : imageData(QSize(width, height), fastRendererOn ? QImage::Format_Indexed8 : QImage::Format_ARGB32){
27 if (!loadedImage.load(filePath))
31 loadedImage = loadedImage.scaled(
imageData.size(),Qt::IgnoreAspectRatio);
39 if (image->size() == newSize)
43 QImage newImage(newSize, QImage::Format_ARGB32);
44 newImage.fill(qRgb(255, 255, 255));
47 QPainter painter(&newImage);
48 painter.drawImage(QPoint(0, 0), *image);
50 *image = newImage.convertToFormat(QImage::Format_Indexed8);
65 painter.setPen(QPen(color, 1, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
68 painter.drawPoint(p1);
82 painter.setPen(QPen(color, penWidth, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
84 painter.drawPoint(p1);
98 painter.setPen(QPen(color, penWidth, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
101 painter.drawLine(p1, p2);
119 QImage copy = this->
imageData.convertToFormat(QImage::Format_ARGB32);
120 return copy.pixelColor(point);
128 copy = copy.convertToFormat(QImage::Format_ARGB32);