magickGetImageProfiles method

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

MagickGetImageProfiles() returns all the profile names that match the specified pattern associated with a wand. Use magickGetImageProfile() to return the value of a particular property.

  • Note: An empty list is returned if there are no results.

Implementation

List<String>? magickGetImageProfiles(String pattern) => using((Arena arena) {
      final Pointer<Char> patternPtr =
          pattern.toNativeUtf8(allocator: arena).cast();
      final Pointer<Size> numProfilesPtr = arena();
      final Pointer<Pointer<Char>> profilesPtr =
          _magickWandBindings.MagickGetImageProfiles(
              _wandPtr, patternPtr, numProfilesPtr);
      final int numProfiles = numProfilesPtr.value;
      final List<String>? result = profilesPtr.toStringList(numProfiles);
      _magickRelinquishMemory(profilesPtr.cast());
      return result;
    });