Exemplo n.º 1
0
MAGICK_NET_EXPORT void DrawingWand_Font(DrawingWand *instance, const char *family, const size_t style, const size_t weight, const size_t stretch, ExceptionInfo **exception)
{
  DrawSetFontFamily(instance, family);
  DrawSetFontStyle(instance, (const StyleType)style);
  DrawSetFontWeight(instance, weight);
  DrawSetFontStretch(instance, stretch);
  MAGICK_NET_SET_DRAW_EXCEPTION;
}
Exemplo n.º 2
0
static bool HHVM_METHOD(ImagickDraw, setFontStretch,
    int64_t fontStretch) {
  auto wand = getDrawingWandResource(Object{this_});
  DrawSetFontStretch(wand->getWand(), (StretchType)fontStretch);
  return true;
}