mirror of
https://github.com/SerenityOS/serenity
synced 2026-04-25 17:15:42 +02:00
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")
32 lines
421 B
C++
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;
|
|
};
|
|
|
|
}
|