How to work with DrawablePattern ?
Posted: 2015-12-30T07:09:04-07:00
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 ?
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 ?