magickSetImageProperty method

bool magickSetImageProperty(
  1. String key,
  2. String value
)

Associates a property with an image.

Implementation

bool magickSetImageProperty(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.MagickSetImageProperty(
            _wandPtr, keyPtr, valuePtr);
      },
    ).toBool();