magickGetImageWhitePoint method

MagickGetImageWhitePointResult? magickGetImageWhitePoint()

MagickGetImageWhitePoint() returns the chromaticity white point.

Implementation

MagickGetImageWhitePointResult? magickGetImageWhitePoint() => using(
      (Arena arena) {
        final Pointer<Double> xPtr = arena();
        final Pointer<Double> yPtr = arena();
        final Pointer<Double> zPtr = arena();
        final bool result = _magickWandBindings.MagickGetImageWhitePoint(
                _wandPtr, xPtr, yPtr, zPtr)
            .toBool();
        if (!result) {
          return null;
        }
        return MagickGetImageWhitePointResult(
          xPtr.value,
          yPtr.value,
          zPtr.value,
        );
      },
    );