tiny-skia-cpp
A C++20 2D rendering library (port of tiny-skia)
Loading...
Searching...
No Matches
Mask.h File Reference

Alpha mask for clipping drawing operations. More...

#include <cstdint>
#include <optional>
#include <span>
#include <utility>
#include <vector>
#include "tiny_skia/Geom.h"
#include "tiny_skia/Pixmap.h"
Include dependency graph for Mask.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tiny_skia::Mask
 8-bit alpha mask for clipping. More...
 

Enumerations

enum class  tiny_skia::MaskType : std::uint8_t { Alpha = 0 , Luminance = 1 }
 How to extract mask data from a pixmap. More...
 

Enumeration Type Documentation

◆ MaskType

enum class tiny_skia::MaskType : std::uint8_t
strong
Enumerator
Alpha 

Use the alpha channel.

Luminance 

Use luminance (weighted RGB).