magickRemoveImageProfile method
Removes the named image profile and returns it.
Implementation
Uint8List? magickRemoveImageProfile(String name) => using((Arena arena) {
final Pointer<Char> namePtr =
name.toNativeUtf8(allocator: arena).cast();
final Pointer<Size> lengthPtr = arena();
final Pointer<UnsignedChar> profilePtr =
_magickWandBindings.MagickRemoveImageProfile(
_wandPtr, namePtr, lengthPtr);
Uint8List? result = profilePtr.toUint8List(lengthPtr.value);
_magickRelinquishMemory(profilePtr.cast());
return result;
});