mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:57:45 +00:00
LibGfx: Add Gfx::Bitmap::apply_mask()
This allows applying an alpha or luminance mask to a bitmap (of the same size) inplace.
This commit is contained in:
parent
93e230ba58
commit
b69e8ee893
2 changed files with 26 additions and 0 deletions
|
@ -133,6 +133,13 @@ public:
|
|||
|
||||
ErrorOr<NonnullRefPtr<Gfx::Bitmap>> inverted() const;
|
||||
|
||||
enum class MaskKind {
|
||||
Alpha,
|
||||
Luminance
|
||||
};
|
||||
|
||||
void apply_mask(Gfx::Bitmap const& mask, MaskKind);
|
||||
|
||||
~Bitmap();
|
||||
|
||||
[[nodiscard]] u8* scanline_u8(int physical_y);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue