diff options
Diffstat (limited to 'include/vcl/bitmap.hxx')
-rw-r--r-- | include/vcl/bitmap.hxx | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index 0c794d496342..bc0d628179ca 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -374,6 +374,37 @@ public: */ Bitmap CreateMask( const Color& rTransColor, sal_uInt8 nTol ) const; + /** Create on-off alpha mask from bitmap + + This method creates a bitmask from the bitmap, where every + pixel that equals rTransColor is set transparent, the rest + opaque. + + @param rTransColor + Color value where the bitmask should be transparent + + @return the resulting bitmask. + */ + AlphaMask CreateAlphaMask( const Color& rTransColor ) const; + + /** Create on-off alpha mask from bitmap + + This method creates a bitmask from the bitmap, where every + pixel that equals rTransColor is set transparent, the rest + opaque. + + @param rTransColor + Color value where the bitmask should be transparent + + @param nTol + Tolerance value. Specifies the maximal difference between + rTransColor and the individual pixel values, such that the + corresponding pixel is still regarded as transparent. + + @return the resulting bitmask. + */ + AlphaMask CreateAlphaMask( const Color& rTransColor, sal_uInt8 nTol ) const; + /** Create region of similar colors in a given rectangle @param rColor |