Kaydet (Commit) 61e12761 authored tarafından Armin Le Grand's avatar Armin Le Grand

Corrected bitmap scaler to not create 24bit outputs for scaling masks/alphas

üst f6bff98d
...@@ -1263,6 +1263,7 @@ sal_Bool Bitmap::ImplScaleInterpolate( const double& rScaleX, const double& rSca ...@@ -1263,6 +1263,7 @@ sal_Bool Bitmap::ImplScaleInterpolate( const double& rScaleX, const double& rSca
if( bRet ) if( bRet )
{ {
bRet = sal_False; bRet = sal_False;
const Bitmap aOriginal(*this);
*this = aNewBmp; *this = aNewBmp;
aNewBmp = Bitmap( Size( nNewWidth, nNewHeight ), 24 ); aNewBmp = Bitmap( Size( nNewWidth, nNewHeight ), 24 );
pReadAcc = AcquireReadAccess(); pReadAcc = AcquireReadAccess();
...@@ -1333,7 +1334,7 @@ sal_Bool Bitmap::ImplScaleInterpolate( const double& rScaleX, const double& rSca ...@@ -1333,7 +1334,7 @@ sal_Bool Bitmap::ImplScaleInterpolate( const double& rScaleX, const double& rSca
if( bRet ) if( bRet )
{ {
ImplAdaptBitCount(aNewBmp); aOriginal.ImplAdaptBitCount(aNewBmp);
*this = aNewBmp; *this = aNewBmp;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment