mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-23 19:25:55 +01:00
Use the propper image format
This commit is contained in:
parent
3a0694323f
commit
5ed06f90b7
@ -6,7 +6,7 @@
|
||||
|
||||
static QImage sdf2img(const QImage &sdf, const QColor &color)
|
||||
{
|
||||
QImage img(sdf.convertToFormat(QImage::Format_ARGB32_Premultiplied));
|
||||
QImage img(sdf.convertToFormat(QImage::Format_ARGB32));
|
||||
quint32 argb = color.rgba();
|
||||
uchar *bits = img.bits();
|
||||
int bpl = img.bytesPerLine();
|
||||
|
Loading…
Reference in New Issue
Block a user