imageAlloc: add image initialization support

This commit is contained in:
Mirco Miranda
2026-05-07 08:41:10 +02:00
parent 3488077d8d
commit 1206598337
2 changed files with 37 additions and 6 deletions

View File

@@ -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;
}