mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-07-21 16:00:56 -04:00
imageAlloc: add image initialization support
This commit is contained in:
@@ -1031,7 +1031,7 @@ bool JXRHandler::read(QImage *outImage)
|
||||
|
||||
PKPixelFormatGUID convFmt;
|
||||
auto imageFmt = d->imageFormat(&convFmt);
|
||||
auto img = imageAlloc(d->imageSize(), imageFmt);
|
||||
auto img = imageAlloc(d->imageSize(), imageFmt, ImageInitToZero::FPOnly);
|
||||
if (img.isNull()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user