1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:47:35 +00:00

LibPDF: Implement SeparationColorSpace

Requires PDF::Function, which isn't implemented yet, so this has
no visual effect yet.
This commit is contained in:
Nico Weber 2023-11-04 21:02:28 +01:00 committed by Andreas Kling
parent 9204252d02
commit b78ea81de5
3 changed files with 68 additions and 8 deletions

View file

@ -10,6 +10,7 @@
#include <AK/Forward.h>
#include <LibGfx/Color.h>
#include <LibGfx/ICC/Profile.h>
#include <LibPDF/Function.h>
#include <LibPDF/Value.h>
#define ENUMERATE_COLOR_SPACE_FAMILIES(V) \
@ -231,7 +232,12 @@ public:
ColorSpaceFamily const& family() const override { return ColorSpaceFamily::Separation; }
private:
SeparationColorSpace() = default;
SeparationColorSpace(NonnullRefPtr<ColorSpace>, NonnullRefPtr<Function>);
DeprecatedString m_name;
NonnullRefPtr<ColorSpace> m_alternate_space;
NonnullRefPtr<Function> m_tint_transform;
Vector<Value> mutable m_tint_output_values;
};
}