Files
serenity/Userland/Libraries/LibGfx/BitmapMixer.h
Lucas CHOLLET 0ff1f39b8b Everywhere: Run clang-format
The following command was used to clang-format these files:

    clang-format-20 -i $(find . \
        -not \( -path "./\.*" -prune \) \
        -not \( -path "./Base/*" -prune \) \
        -not \( -path "./Build/*" -prune \) \
        -not \( -path "./Toolchain/*" -prune \) \
        -not \( -path "./Ports/*" -prune \) \
        -type f -name "*.cpp" -o -name "*.mm" -o -name "*.h")
2025-10-10 00:02:50 +02:00

32 lines
421 B
C++

/*
* Copyright (c) 2022, Tobias Christiansen <tobyase@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include "Bitmap.h"
namespace Gfx {
class BitmapMixer {
public:
enum class MixingMethod {
Add,
Lightest,
};
BitmapMixer(Bitmap& bitmap)
: m_bitmap(bitmap)
{
}
void mix_with(Bitmap&, MixingMethod);
private:
Bitmap& m_bitmap;
};
}