diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2018-04-05 16:02:17 +1000 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-04-05 11:03:49 +0200 |
commit | 4eaa447630756f64bceba81e1a787c289c120152 (patch) | |
tree | af31eaf5940c2f5188b7ef82550959e23b9c23a1 /include/vcl/bitmap.hxx | |
parent | 4e9dbb4c81dfd99cfec4a36372b09a96ad4d4133 (diff) |
vcl: ImplAssignWithSize() -> ReassignWithSize()
Change-Id: I278a976028762f5c101dfd46ee62c4aa06bd719d
Reviewed-on: https://gerrit.libreoffice.org/52422
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/vcl/bitmap.hxx')
-rw-r--r-- | include/vcl/bitmap.hxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index 69108febbe4e..5740fc38eb63 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -662,11 +662,17 @@ public: const BmpFilterParam* pFilterParam = nullptr ); public: + /** ReassignWithSize and recalculate bitmap. + + ReassignWithSizes the bitmap, and recalculates the bitmap size based on the new bitmap. + + @param rBitmap Bitmap to reassign and use for size calculation + */ + SAL_DLLPRIVATE void ReassignWithSize(const Bitmap& rBitmap); SAL_DLLPRIVATE void ImplMakeUnique(); const std::shared_ptr<ImpBitmap>& ImplGetImpBitmap() const { return mxImpBmp; } SAL_DLLPRIVATE void ImplSetImpBitmap( const std::shared_ptr<ImpBitmap>& xImpBmp ); - SAL_DLLPRIVATE void ImplAssignWithSize( const Bitmap& rBitmap ); SAL_DLLPRIVATE bool ImplScaleFast( const double& rScaleX, const double& rScaleY ); SAL_DLLPRIVATE bool ImplScaleInterpolate( const double& rScaleX, const double& rScaleY ); |