How to work with DrawablePattern ?

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
BernhardRichter
Posts: 2
Joined: 2015-12-30T04:53:26-07:00
Authentication code: 1151

How to work with DrawablePattern ?

Post by BernhardRichter »

Clip Path work with this code:

Drawables.push_back(Magick::DrawablePushClipPath(PathID));
Drawables.push_back(Magick::DrawablePath(Path));
Drawables.push_back(Magick::DrawablePopClipPath());

Drawables.push_back(Magick::DrawableClipPath(PathID));

Pattern should work in same kind:

Drawables.push_back(Magick::DrawablePushPattern(PatternID, 0, 0, 100, 100));
Drawables.push_back(Magick::DrawableRectangle(10, 10, 90, 90));
Drawables.push_back(Magick::DrawableFillColor(Magick::ColorRGB(1.0, 0.0, 0.0)));
Drawables.push_back(Magick::DrawablePopPattern());

Drawables.push_back(Magick::DrawablePattern(PatternID, 0, 0, 1000, 1000));

but i cannot find a DrawablePattern() function.
what am i doing wrong ?
How can i apply pattern ?
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: How to work with DrawablePattern ?

Post by dlemstra »

You can only use those patterns as a Stroke/Fill pattern. I recently added this to IM7. Should be available in a couple of days in IM6 also.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply