• Jan-Marek Glogowski's avatar
    Make BitmapColor inherit from / merge into Color · c34bb163
    Jan-Marek Glogowski yazdı
    BitmapColor itself is kept to distingish the Color usage as part
    of a color palette, which continues to store the offset in the
    blue value. The original special mbIndex handling is long gone
    since commit 1fefdd6f ("Alpha channel in BitmapColor - change
    bIndex to alpha"), so there is no data difference.
    
    This also results in the following changes:
    
    * now has a basic_ostream<charT, traits>& operator<<
      (that was my actual starting point... for an other bug fix)
    * there is a minimal difference for GetLiminance
      BGR(29,151,76) => BGR(28,151,77)
    * no more return values for Merge and Invert
      (previously returning *this)
    * replaces all GetBlueOrIndex with GetIndex
    
    This leaves one "problematic" part: the GetColorError handling.
    At first glance it should probably be virtual. The Color variant
    is less strict then the BitmapColor one - for whatever reason.
    BitmapColor is always used to search for the best match in a
    Palette. Currently I'm simply leaving both variants. Would be
    nice to have an explict for functions here.
    
    Change-Id: I251ba3024a1d60f2a9d9fde9cd0a60f08e8322a7
    Reviewed-on: https://gerrit.libreoffice.org/72181
    Tested-by: Jenkins
    Reviewed-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
    Reviewed-by: 's avatarJan-Marek Glogowski <glogow@fbihome.de>
    c34bb163
Adı
Son kayıt (commit)
Son güncelleme
..
inc Loading commit data...
qa Loading commit data...
res Loading commit data...
sdi Loading commit data...
source Loading commit data...
uiconfig Loading commit data...
util Loading commit data...
workben Loading commit data...
xml Loading commit data...
xsl Loading commit data...
AllLangMoTarget_sd.mk Loading commit data...
CppunitTest_sd_activex_controls_tests.mk Loading commit data...
CppunitTest_sd_dialogs_test.mk Loading commit data...
CppunitTest_sd_export_ooxml1.mk Loading commit data...
CppunitTest_sd_export_ooxml2.mk Loading commit data...
CppunitTest_sd_export_tests.mk Loading commit data...
CppunitTest_sd_filters_test.mk Loading commit data...
CppunitTest_sd_html_export_tests.mk Loading commit data...
CppunitTest_sd_import_tests.mk Loading commit data...
CppunitTest_sd_import_tests_smartart.mk Loading commit data...
CppunitTest_sd_misc_tests.mk Loading commit data...
CppunitTest_sd_svg_export_tests.mk Loading commit data...
CppunitTest_sd_tiledrendering.mk Loading commit data...
CppunitTest_sd_uimpress.mk Loading commit data...
IwyuFilter_sd.yaml Loading commit data...
JunitTest_sd_unoapi.mk Loading commit data...
Library_sd.mk Loading commit data...
Library_sdd.mk Loading commit data...
Library_sdfilt.mk Loading commit data...
Library_sdui.mk Loading commit data...
Makefile Loading commit data...
Module_sd.mk Loading commit data...
Package_opengl.mk Loading commit data...
Package_web.mk Loading commit data...
Package_xml.mk Loading commit data...
README Loading commit data...
README_REMOTE Loading commit data...
UIConfig_sdraw.mk Loading commit data...
UIConfig_simpress.mk Loading commit data...
UITest_impress_tests.mk Loading commit data...
UITest_sd_findReplace.mk Loading commit data...