mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kimgio: add note about the mask in ico plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
873f109a57
commit
e7c46ec677
1 changed files with 1 additions and 0 deletions
|
@ -366,6 +366,7 @@ bool ICOHandler::write(const QImage &image)
|
|||
datastream.writeRawData(bmpimagebits, bmpimagesize);
|
||||
#endif
|
||||
|
||||
// NOTE: the mask is undocumented but some browsers fail to load images without mask
|
||||
const QImage bmpimagemask = bmpimage.createAlphaMask();
|
||||
const char* bmpimagemaskbits = reinterpret_cast<const char*>(bmpimagemask.constBits());
|
||||
const int bmpimagemasksize = bmpimagemask.byteCount();
|
||||
|
|
Loading…
Add table
Reference in a new issue