magickGetPage method

MagickGetPageResult? magickGetPage()

Returns the page geometry associated with the magick wand.

Implementation

MagickGetPageResult? magickGetPage() => 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.MagickGetPage(
              _wandPtr, widthPtr, heightPtr, xPtr, yPtr)
          .toBool();
      if (!result) {
        return null;
      }
      return MagickGetPageResult(
          widthPtr.value, heightPtr.value, xPtr.value, yPtr.value);
    });