19 color2 = color2 *
base / 0xFF;
20 color1 = color1 * (0xFF -
base) / 0xFF;
22 return static_cast<sal_uInt8>(color1 + color2);
38 for (sal_Int32
x = 0;
x < nWidth;
x++)
40 for (sal_Int32
y = 0;
y < nHeight;
y++)
49 pWriteAcc->SetPixel(
y,
x, aResultColor);
static sal_uInt8 lcl_getDuotoneColorComponent(sal_uInt8 base, sal_uInt16 color1, sal_uInt16 color2)
virtual BitmapEx execute(BitmapEx const &rBitmapEx) const override
Bitmap GetBitmap(Color aTransparentReplaceColor) const
BitmapColor GetColor(tools::Long nY, tools::Long nX) const
SAL_DLLPRIVATE void ReassignWithSize(const Bitmap &rBitmap)
ReassignWithSize and recalculate bitmap.
Size GetSizePixel() const
sal_uInt8 GetLuminance() const
sal_uInt8 GetBlue() const
sal_uInt8 GetGreen() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const