1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

LibPDF: Implement DeviceNColorSpace

This commit is contained in:
Nico Weber 2023-11-06 13:54:59 +01:00 committed by Andreas Kling
parent 0f07049935
commit 5af6e1c042
2 changed files with 47 additions and 14 deletions

View file

@ -125,9 +125,13 @@ public:
ColorSpaceFamily const& family() const override { return ColorSpaceFamily::DeviceN; }
private:
DeviceNColorSpace(size_t number_of_components);
DeviceNColorSpace(NonnullRefPtr<ColorSpace>, NonnullRefPtr<Function>);
size_t m_number_of_components { 0 };
Vector<DeprecatedString> m_names;
NonnullRefPtr<ColorSpace> m_alternate_space;
NonnullRefPtr<Function> m_tint_transform;
Vector<float> mutable m_tint_input_values;
Vector<Value> mutable m_tint_output_values;
};
class CalGrayColorSpace final : public ColorSpace {