magickGetImageResolution method

MagickGetImageResolutionResult? magickGetImageResolution()

MagickGetImageResolution() gets the image X and Y resolution.

Implementation

MagickGetImageResolutionResult? magickGetImageResolution() => using(
      (Arena arena) {
        final Pointer<Double> xResolutionPtr = arena();
        final Pointer<Double> yResolutionPtr = arena();
        final bool result = _magickWandBindings.MagickGetImageResolution(
                _wandPtr, xResolutionPtr, yResolutionPtr)
            .toBool();
        if (!result) {
          return null;
        }
        return MagickGetImageResolutionResult(
          xResolutionPtr.value,
          yResolutionPtr.value,
        );
      },
    );