解决方案 »

  1.   

    http://download.csdn.net/detail/schlafenhamster/3992785
    "24to8Colors.zip" 0 分
    "比较2个24位位图到8位位图的算法效果。一个使用通用算法,一个使用Octree算法,Octree算法效果略好于通用算法。"
      

  2.   

    这个算法以及实现代码网上应该一搜一大把。Color Functions
    The following functions are used with color.   
     
    AnimatePalette  
    CreateHalftonePalette  
    CreatePalette  
    GetColorAdjustment  
    GetNearestColor  
    GetNearestPaletteIndex  
    GetPaletteEntries  
    GetSystemPaletteEntries  
    GetSystemPaletteUse  
    HTUI_ColorAdjustment  
    HTUI_DeviceColorAdjustment  
    RealizePalette  
    ResizePalette  
    SelectPalette  
    SetColorAdjustment  
    SetPaletteEntries  
    SetSystemPaletteUse  
    UnrealizeObject  
    UpdateColors