mirror of
https://github.com/lovell/sharp.git
synced 2026-02-05 14:16:17 +01:00
Add joinChannel and toColourspace/toColorspace operations (#513)
This commit is contained in:
committed by
Lovell Fuller
parent
72354d55a8
commit
5c5d74a903
@@ -430,4 +430,13 @@ namespace sharp {
|
||||
);
|
||||
}
|
||||
|
||||
/*
|
||||
Get interpretation type from string
|
||||
*/
|
||||
VipsInterpretation GetInterpretation(std::string const typeStr) {
|
||||
return static_cast<VipsInterpretation>(
|
||||
vips_enum_from_nick(nullptr, VIPS_TYPE_INTERPRETATION, typeStr.data())
|
||||
);
|
||||
}
|
||||
|
||||
} // namespace sharp
|
||||
|
||||
Reference in New Issue
Block a user