mirror of
https://github.com/lovell/sharp.git
synced 2026-02-05 22:26:20 +01:00
Add boolean feature for bitwise image operations (#501)
This commit is contained in:
committed by
Lovell Fuller
parent
99f960bf56
commit
d17e8d3450
@@ -330,4 +330,13 @@ namespace sharp {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Get VIPS Boolean operatoin type from string
|
||||
*/
|
||||
VipsOperationBoolean GetBooleanOperation(std::string opStr) {
|
||||
return static_cast<VipsOperationBoolean>(
|
||||
vips_enum_from_nick(nullptr, VIPS_TYPE_OPERATION_BOOLEAN, opStr.data())
|
||||
);
|
||||
}
|
||||
|
||||
} // namespace sharp
|
||||
|
||||
Reference in New Issue
Block a user