drawSetClipPath method

bool drawSetClipPath(
  1. String clipMaskId
)

DrawSetClipPath() associates a named clipping path with the image. Only the areas drawn on by the clipping path will be modified as ssize_t as it remains in effect.

  • clipMaskId : name of clipping path to associate with image

Implementation

bool drawSetClipPath(String clipMaskId) => using(
      (Arena arena) => _magickWandBindings.DrawSetClipPath(
        _wandPtr,
        clipMaskId.toNativeUtf8(allocator: arena).cast(),
      ),
    ).toBool();