IFF: add support for a different palette per line

This commit is contained in:
Mirco Miranda
2025-08-12 08:28:31 +02:00
parent 68cc915132
commit f63b082c85
5 changed files with 466 additions and 51 deletions
+2 -1
View File
@@ -1193,12 +1193,13 @@ void MicroExif::updateImageMetadata(QImage &targetImage, bool replaceExisting) c
}
}
void MicroExif::updateImageResolution(QImage &targetImage)
bool MicroExif::updateImageResolution(QImage &targetImage)
{
if (horizontalResolution() > 0)
targetImage.setDotsPerMeterX(qRound(horizontalResolution() / 25.4 * 1000));
if (verticalResolution() > 0)
targetImage.setDotsPerMeterY(qRound(verticalResolution() / 25.4 * 1000));
return (horizontalResolution() > 0) || (verticalResolution() > 0);
}
MicroExif MicroExif::fromByteArray(const QByteArray &ba, bool searchHeader)