mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:57:35 +00:00
LibGfx: Add a method to get a specific tag from an ICC Profile
This commit is contained in:
parent
91b677c81e
commit
1066831b39
1 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue