magickGetImageProperties method

List<String>? magickGetImageProperties(
  1. String pattern
)

Returns all the property names that match the specified pattern associated with a wand. Use magickGetImageProperty() to return the value of a particular property.

Implementation

List<String>? magickGetImageProperties(String pattern) =>
    using((Arena arena) {
      final Pointer<Char> patternPtr =
          pattern.toNativeUtf8(allocator: arena).cast();
      final Pointer<Size> numPropertiesPtr = arena();
      final Pointer<Pointer<Char>> propertiesPtr =
          _magickWandBindings.MagickGetImageProperties(
              _wandPtr, patternPtr, numPropertiesPtr);
      final int numProperties = numPropertiesPtr.value;
      final List<String>? result = propertiesPtr.toStringList(numProperties);
      _magickRelinquishMemory(propertiesPtr.cast());
      return result;
    });