1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:37:36 +00:00

LibPDF: Add basic ICCBased color space handling

This commit is contained in:
Matthew Olsson 2022-03-24 10:08:43 -07:00 committed by Andreas Kling
parent 1238e65d30
commit e1115cfe48
3 changed files with 39 additions and 0 deletions

View file

@ -89,4 +89,16 @@ private:
Array<float, 9> m_matrix { 1, 0, 0, 0, 1, 0, 0, 0, 1 };
};
class ICCBasedColorSpace final : public ColorSpace {
public:
static PDFErrorOr<NonnullRefPtr<ColorSpace>> create(Document*, Page const&, Vector<Value>&& parameters);
~ICCBasedColorSpace() override = default;
Color color(Vector<Value> const& arguments) const override;
private:
ICCBasedColorSpace() = delete;
};
}