BitmapMixer.h 413 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2022, Tobias Christiansen <tobyase@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include "Bitmap.h"
  8. namespace Gfx {
  9. class BitmapMixer {
  10. public:
  11. enum class MixingMethod {
  12. Add,
  13. Lightest,
  14. };
  15. BitmapMixer(Bitmap& bitmap)
  16. : m_bitmap(bitmap) {};
  17. void mix_with(Bitmap&, MixingMethod);
  18. private:
  19. Bitmap& m_bitmap;
  20. };
  21. }