mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-24 03:35:54 +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)
|
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();
|
quint32 argb = color.rgba();
|
||||||
uchar *bits = img.bits();
|
uchar *bits = img.bits();
|
||||||
int bpl = img.bytesPerLine();
|
int bpl = img.bytesPerLine();
|
||||||
|
Loading…
Reference in New Issue
Block a user