Converting RGB8888 to ARGB32_Premultiplied (for performance reasons)

This commit is contained in:
Jonathan Thomas
2020-10-13 18:18:10 -05:00
committed by FeRD (Frank Dana)
parent ab4916247b
commit 096c2c409d
9 changed files with 20 additions and 29 deletions

View File

@@ -67,7 +67,7 @@ void QtTextReader::Open()
if (!is_open)
{
// create image
image = std::make_shared<QImage>(width, height, QImage::Format_RGBA8888);
image = std::make_shared<QImage>(width, height, QImage::Format_ARGB32_Premultiplied);
image->fill(QColor(background_color.c_str()));
QPainter painter;