Page 1 of 1

How to work with DrawablePattern ?

Posted: 2015-12-30T07:09:04-07:00
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 ?

Re: How to work with DrawablePattern ?

Posted: 2015-12-30T08:08:11-07:00
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.