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