summaryrefslogtreecommitdiff
path: root/include/vcl/bmpacc.hxx
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2013-08-27 12:46:41 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-08-28 09:53:24 +0100
commit4a8f7ddc290d1ea3131de6611b6833b77ac7ab1f (patch)
treeba207c236999f462c214d9c2a8782bd99e0a21ea /include/vcl/bmpacc.hxx
parente75e0214134ca6ad92150bf6099c12d8859575b1 (diff)
Resolves: #i122778# Enhanced own transformer for drawing transformed bitmaps
which is used in the cases where no fallback for direct system support is there (Linux) (cherry picked from commit 75e9010730525ed6122655ac3c3899359c305104) Conflicts: vcl/inc/vcl/bitmapex.hxx vcl/inc/vcl/bmpacc.hxx vcl/source/gdi/bmpacc.cxx Change-Id: I6e7a575e01456297e84785a7de14e42e0dc72f5f
Diffstat (limited to 'include/vcl/bmpacc.hxx')
-rw-r--r--include/vcl/bmpacc.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/vcl/bmpacc.hxx b/include/vcl/bmpacc.hxx
index ea36a05b0d36..70015ba17fa6 100644
--- a/include/vcl/bmpacc.hxx
+++ b/include/vcl/bmpacc.hxx
@@ -158,6 +158,16 @@ public:
inline BitmapColor GetColor( long nY, long nX ) const;
inline sal_uInt8 GetPixelIndex( long nY, long nX ) const;
inline sal_uInt8 GetLuminance( long nY, long nX ) const;
+
+ /** Get the interpolated color at coordinates fY, fX; if outside, return rFallback */
+ BitmapColor GetInterpolatedColorWithFallback( double fY, double fX, const BitmapColor& rFallback ) const;
+
+ /** Get the color at coordinates fY, fX; if outside, return rFallback. Automatically does the correct
+ inside/outside checks, e.g. static_cast< sal_uInt32 >(-0.25) *is* 0, not -1 and has to be outside */
+ BitmapColor GetColorWithFallback( double fY, double fX, const BitmapColor& rFallback ) const;
+
+ /** Get the color at coordinates nY, nX; if outside, return rFallback */
+ BitmapColor GetColorWithFallback( long nY, long nX, const BitmapColor& rFallback ) const;
};
// ---------------------