diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-05 13:24:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-06 13:38:00 +0100 |
commit | b0fd921441e1e1066e232282843317514375c8ec (patch) | |
tree | 5dda07ff12936d864e651172f293d72022f99e89 /include/vcl | |
parent | 08c0a761036427c15d3df13a671abe432654f90d (diff) |
convert tolerance params to sal_uInt8 (second try)
first attempt was in commit e75abe6e0a4ea250366bb29c0ece697e9b1b80a1,
reverted in 7accac097688832d8682a88a0176c3e1482ffade
Change-Id: I460e9ab5fcca3a99656e5d8434fa04c2387d7183
Reviewed-on: https://gerrit.libreoffice.org/47463
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/bitmap.hxx | 8 | ||||
-rw-r--r-- | include/vcl/bitmapex.hxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index f2cd512b3158..c4a5a3f56cbf 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -492,11 +492,11 @@ public: @param nTol Tolerance value. Specifies the maximal difference between rTransColor and the individual pixel values, such that the - corresponding pixel is still regarded transparent. + corresponding pixel is still regarded as transparent. @return the resulting bitmask. */ - Bitmap CreateMask( const Color& rTransColor, sal_uLong nTol = 0 ) const; + Bitmap CreateMask( const Color& rTransColor, sal_uInt8 nTol = 0 ) const; /** Create region of similar colors in a given rectangle @@ -550,7 +550,7 @@ public: @return true, if the operation was completed successfully. */ - bool Replace( const Color& rSearchColor, const Color& rReplaceColor, sal_uLong nTol = 0 ); + bool Replace( const Color& rSearchColor, const Color& rReplaceColor, sal_uInt8 nTol = 0 ); /** Replace all pixel having one the search colors with the corresponding replace color @@ -574,7 +574,7 @@ public: const Color* pSearchColors, const Color* rReplaceColors, sal_uLong nColorCount, - sal_uLong* pTols ); + sal_uInt8 const * pTols ); /** Convert the bitmap to a meta file diff --git a/include/vcl/bitmapex.hxx b/include/vcl/bitmapex.hxx index 3cef293b4e11..a850572357e9 100644 --- a/include/vcl/bitmapex.hxx +++ b/include/vcl/bitmapex.hxx @@ -293,7 +293,7 @@ public: const Color* pSearchColors, const Color* pReplaceColors, sal_uLong nColorCount, - const sal_uLong* pTols = nullptr ); + const sal_uInt8* pTols = nullptr ); /** Change various global color characteristics |