magickSetImageArtifact method
Sets a key-value pair in the image artifact namespace. Artifacts differ from properties. Properties are public and are generally exported to an external image format if the format supports it. Artifacts are private and are utilized by the internal ImageMagick API to modify the behavior of certain algorithms.
Implementation
bool magickSetImageArtifact(String key, String value) => using(
(Arena arena) {
final Pointer<Char> keyPtr =
key.toNativeUtf8(allocator: arena).cast();
final Pointer<Char> valuePtr =
value.toNativeUtf8(allocator: arena).cast();
return _magickWandBindings.MagickSetImageArtifact(
_wandPtr, keyPtr, valuePtr);
},
).toBool();