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

LibGfx: Add a method to get a specific tag from an ICC Profile

This commit is contained in:
Sam Atkins 2023-06-26 16:44:26 +01:00 committed by Sam Atkins
parent 91b677c81e
commit 1066831b39

View file

@ -254,6 +254,11 @@ public:
return {};
}
Optional<TagData const&> tag_data(TagSignature signature) const
{
return m_tag_table.get(signature).map([](auto it) -> TagData const& { return *it; });
}
size_t tag_count() const { return m_tag_table.size(); }
// Only versions 2 and 4 are in use.