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
if( bRet )
{
bRet = sal_False;
const Bitmap aOriginal(*this);
*this = aNewBmp;
aNewBmp = Bitmap( Size( nNewWidth, nNewHeight ), 24 );
pReadAcc = AcquireReadAccess();
......@@ -1333,7 +1334,7 @@ sal_Bool Bitmap::ImplScaleInterpolate( const double& rScaleX, const double& rSca
if( bRet )
{
ImplAdaptBitCount(aNewBmp);
aOriginal.ImplAdaptBitCount(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