/[projet1]/public/pc/tools/osdk/main/pictconv/sources/image.cpp
Defence Force logotype

Diff of /public/pc/tools/osdk/main/pictconv/sources/image.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1373 by dbug, Thu Jan 7 18:50:34 2016 UTC revision 1374 by dbug, Mon Jul 11 14:39:36 2016 UTC
# Line 330  bool ImageContainer::ReduceColorDepth(co Line 330  bool ImageContainer::ReduceColorDepth(co
330      }      }
331    }    }
332    
333      if (FreeImage_GetBPP(m_pBitmap) != 24)
334      {
335        FIBITMAP *dib24 = FreeImage_ConvertTo24Bits(m_pBitmap);
336        FreeImage_Unload(m_pBitmap);
337        m_pBitmap=dib24;
338      }
339    
340    FIBITMAP *dib8  = FreeImage_ColorQuantizeEx(m_pBitmap,FIQ_NNQUANT,16,reservedPalette.size(),pReservedPalette);    FIBITMAP *dib8  = FreeImage_ColorQuantizeEx(m_pBitmap,FIQ_NNQUANT,16,reservedPalette.size(),pReservedPalette);
341    FIBITMAP *dib32 = FreeImage_ConvertTo32Bits(dib8);    FIBITMAP *dib32 = FreeImage_ConvertTo32Bits(dib8);
342    FreeImage_Unload(dib8);    FreeImage_Unload(dib8);

Legend:
Removed from v.1373  
changed lines
  Added in v.1374

  ViewVC Help
Powered by ViewVC 1.1.26