magickGetOptions method
Returns all the option names that match the specified pattern associated
with a wand. Use magickGetOption()
to return the value of a particular
option.
Implementation
List<String>? magickGetOptions(String pattern) => using((Arena arena) {
final Pointer<Char> patternPtr =
pattern.toNativeUtf8(allocator: arena).cast();
final Pointer<Size> numOptionsPtr = arena();
final Pointer<Pointer<Char>> optionsPtr =
_magickWandBindings.MagickGetOptions(
_wandPtr, patternPtr, numOptionsPtr);
final int numOptions = numOptionsPtr.value;
final List<String>? result = optionsPtr.toStringList(numOptions);
_magickRelinquishMemory(optionsPtr.cast());
return result;
});