drawPushPattern method
DrawPushPattern() indicates that subsequent commands up to a DrawPopPattern() command comprise the definition of a named pattern. The pattern space is assigned top left corner coordinates, a width and height, and becomes its own drawing space. Anything which can be drawn may be used in a pattern definition. Named patterns may be used as stroke or brush definitions.
patternId
: pattern identification for later referencex
: x ordinate of top left cornery
: y ordinate of top left cornerwidth
: width of pattern spaceheight
: height of pattern space
Implementation
bool drawPushPattern({
required String patternId,
required double x,
required double y,
required double width,
required double height,
}) =>
using(
(Arena arena) => _magickWandBindings.DrawPushPattern(
_wandPtr,
patternId.toNativeUtf8(allocator: arena).cast(),
x,
y,
width,
height,
),
).toBool();