magickGetImagePage method

MagickGetImagePageResult? magickGetImagePage()

MagickGetImagePage() returns the page geometry associated with the image.

Implementation

MagickGetImagePageResult? magickGetImagePage() => using(
      (Arena arena) {
        final Pointer<Size> widthPtr = arena();
        final Pointer<Size> heightPtr = arena();
        final Pointer<mwbg.ssize_t> xPtr = arena();
        final Pointer<mwbg.ssize_t> yPtr = arena();
        final bool result = _magickWandBindings.MagickGetImagePage(
                _wandPtr, widthPtr, heightPtr, xPtr, yPtr)
            .toBool();
        if (!result) {
          return null;
        }
        return MagickGetImagePageResult(
          widthPtr.value,
          heightPtr.value,
          xPtr.value,
          yPtr.value,
        );
      },
    );