https://bugs.documentfoundation.org/show_bug.cgi?id=154631

Julien Nabet <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected],
                   |                            |[email protected]

--- Comment #4 from Julien Nabet <[email protected]> ---
Code pointer:
https://opengrok.libreoffice.org/xref/core/vcl/source/filter/egif/egif.cxx?r=cfb2a587#256
    241 bool GIFWriter::CreateAccess( const BitmapEx& rBmpEx )
    242 {
    243     if( bStatus )
    244     {
    245         Bitmap aMask( rBmpEx.GetAlphaMask() );
    246 
    247         aAccBmp = rBmpEx.GetBitmap();
    248         bTransparent = false;
    249 
    250         if( !aMask.IsEmpty() )
    251         {
    252             if( aAccBmp.Convert( BmpConversion::N8BitTrans ) )
    253             {
    254                 aMask.Convert( BmpConversion::N1BitThreshold );
    255                 aAccBmp.Replace( aMask, BMP_COL_TRANS );
    256                 bTransparent = true;
    257             }

LO goes into line 256 but BMP_COL_TRANS is defined as 
#define BMP_COL_TRANS               Color( 252, 3, 251 )
See
https://opengrok.libreoffice.org/xref/core/include/vcl/bitmap.hxx?r=5244e7ca

which would correspond to the red color.

git grep -n BMP_COL_TRANS gives:
include/vcl/bitmap.hxx:67:#define BMP_COL_TRANS               Color( 252, 3,
251 )
vcl/source/bitmap/bitmap.cxx:922:            Color aTrans( BMP_COL_TRANS );
vcl/source/filter/egif/egif.cxx:255:                aAccBmp.Replace( aMask,
BMP_COL_TRANS );
vcl/source/filter/egif/egif.cxx:395:    m_rGIF.WriteUChar(
m_pAcc->GetBestPaletteIndex( BMP_COL_TRANS ) );

Noel: any thoughts about this specific color for transparency?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to