summaryrefslogtreecommitdiff
path: root/drawinglayer/source/processor2d/vclhelperbitmaptransform.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'drawinglayer/source/processor2d/vclhelperbitmaptransform.cxx')
-rw-r--r--drawinglayer/source/processor2d/vclhelperbitmaptransform.cxx40
1 files changed, 20 insertions, 20 deletions
diff --git a/drawinglayer/source/processor2d/vclhelperbitmaptransform.cxx b/drawinglayer/source/processor2d/vclhelperbitmaptransform.cxx
index 3e4b98655f18..0676aabc04bb 100644
--- a/drawinglayer/source/processor2d/vclhelperbitmaptransform.cxx
+++ b/drawinglayer/source/processor2d/vclhelperbitmaptransform.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ namespace drawinglayer
fDeltaX = -fDeltaX;
nIndX--;
}
-
+
if(fDeltaY > 0.0 && nIntY + 1L < rRead.Height())
{
nIndY++;
@@ -103,14 +103,14 @@ namespace drawinglayer
if(!nIndX)
{
const BitmapColor aBottom(rRead.GetColor(nIntY + nIndY, nIntX));
-
+
fRBottom = aBottom.GetRed() * fColorToReal;
fGBottom = aBottom.GetGreen() * fColorToReal;
fBBottom = aBottom.GetBlue() * fColorToReal;
}
const double fMulB(1.0 - fDeltaY);
-
+
fR = (fR * fMulB) + (fRBottom * fDeltaY);
fG = (fG * fMulB) + (fGBottom * fDeltaY);
fB = (fB * fMulB) + (fBBottom * fDeltaY);
@@ -138,7 +138,7 @@ namespace drawinglayer
fDeltaX = -fDeltaX;
nIndX--;
}
-
+
if(fDeltaY > 0.0 && nIntY + 1L < rRead.Height())
{
nIndY++;
@@ -178,12 +178,12 @@ namespace drawinglayer
if(!nIndX)
{
const BitmapColor aBottom(rRead.GetPixel(nIntY + nIndY, nIntX));
-
+
fValBottom = aBottom.GetIndex() * fColorToReal;
}
const double fMulB(1.0 - fDeltaY);
-
+
fVal = (fVal * fMulB) + (fValBottom * fDeltaY);
}
@@ -222,7 +222,7 @@ namespace drawinglayer
if(bWorkWithIndex)
{
BitmapColor aValue(pRead->GetPixel(nIntY, nIntX));
-
+
if(bSmooth)
{
impSmoothIndex(aValue, aSourceCoor, nIntX, nIntY, *pRead);
@@ -233,7 +233,7 @@ namespace drawinglayer
else
{
BitmapColor aValue(pRead->GetColor(nIntY, nIntX));
-
+
if(bSmooth)
{
impSmoothPoint(aValue, aSourceCoor, nIntX, nIntY, *pRead);
@@ -289,8 +289,8 @@ namespace drawinglayer
namespace drawinglayer
{
BitmapEx impTransformBitmapEx(
- const BitmapEx& rSource,
- const Rectangle& rCroppedRectPixel,
+ const BitmapEx& rSource,
+ const Rectangle& rCroppedRectPixel,
const basegfx::B2DHomMatrix& rTransform)
{
// force destination to 24 bit, we want to smooth output
@@ -320,7 +320,7 @@ namespace drawinglayer
}
BitmapEx impModifyBitmapEx(
- const basegfx::BColorModifierStack& rBColorModifierStack,
+ const basegfx::BColorModifierStack& rBColorModifierStack,
const BitmapEx& rSource)
{
Bitmap aChangedBitmap(rSource.GetBitmap());
@@ -329,7 +329,7 @@ namespace drawinglayer
for(sal_uInt32 a(rBColorModifierStack.count()); a && !bDone; )
{
const basegfx::BColorModifier& rModifier = rBColorModifierStack.getBColorModifier(--a);
-
+
switch(rModifier.getMode())
{
case basegfx::BCOLORMODIFYMODE_REPLACE :
@@ -351,8 +351,8 @@ namespace drawinglayer
BitmapPalette aNewPalette(pReadAccess->GetPalette());
aNewPalette[0] = BitmapColor(Color(rModifier.getBColor()));
aChangedBitmap = Bitmap(
- aChangedBitmap.GetSizePixel(),
- aChangedBitmap.GetBitCount(),
+ aChangedBitmap.GetSizePixel(),
+ aChangedBitmap.GetBitCount(),
&aNewPalette);
delete pReadAccess;
}
@@ -367,7 +367,7 @@ namespace drawinglayer
// erase bitmap, caller will know to paint direct
aChangedBitmap.SetEmpty();
}
-
+
bDone = true;
break;
}
@@ -386,18 +386,18 @@ namespace drawinglayer
{
const BitmapColor aBMCol(pContent->GetColor(y, x));
const basegfx::BColor aBSource(
- (double)aBMCol.GetRed() * fConvertColor,
- (double)aBMCol.GetGreen() * fConvertColor,
+ (double)aBMCol.GetRed() * fConvertColor,
+ (double)aBMCol.GetGreen() * fConvertColor,
(double)aBMCol.GetBlue() * fConvertColor);
const basegfx::BColor aBDest(rModifier.getModifiedColor(aBSource));
-
+
pContent->SetPixel(y, x, BitmapColor(Color(aBDest)));
}
}
delete pContent;
}
-
+
break;
}
}