if (rBmpEx.IsTransparent())
{
...
}
else
{
mpAccess = Bitmap::ScopedReadAccess(aBmp); // palette + RGB without alphachannel
if (mpAccess)
{
if (ImplWriteHeader())
{
ImplWritepHYs(rBmpEx);
if (mpAccess->HasPalette())
ImplWritePalette();
ImplWriteIDAT();
}
mpAccess.reset();
}
else
{
mbStatus = false;
}
}
if (mbStatus)
{
ImplOpenChunk(PNGCHUNK_IEND); // create an IEND chunk
}
mbStatus est initialisé à true, donc pour passer à false c'est que vraisemblablement mpAccess = Bitmap::ScopedReadAccess(aBmp); // palette + RGB without alphachannel renvoie NULL. Est-ce le RGB qui pose problème sachant qu'on est à 1 bit par pixel ?
[^] # Re: PNG 1bpp non-transparent
Posté par liberforce (site web personnel, Mastodon) . En réponse au journal LibreOffice, altération d'images intégrées :( ?. Évalué à 8.
Bien vu.
mbStatus est initialisé à true, donc pour passer à false c'est que vraisemblablement
mpAccess = Bitmap::ScopedReadAccess(aBmp); // palette + RGB without alphachannelrenvoie NULL. Est-ce leRGBqui pose problème sachant qu'on est à 1 bit par pixel ?