static VALUE set_version(VALUE self, VALUE version) { SWFShape shape; Data_Get_Struct(self, struct SWFShape_s, shape); SWFShape_useVersion(shape, NUM2INT(version)); return self; }
static int SWFShape_addLineStyle2(SWFShape shape, unsigned short width, byte r, byte g, byte b, byte a, int flags, float miterLimit) { growLineArray(shape); SWFShape_useVersion(shape, SWF_SHAPE4); shape->lines[shape->nLines] = newSWFLineStyle2(width, r, g, b, a, flags, miterLimit); return ++shape->nLines; }
static int SWFShape_addLineStyle2filled(SWFShape shape, unsigned short width, SWFFillStyle fill, int flags, float miterLimit) { growLineArray(shape); SWFShape_useVersion(shape, SWF_SHAPE4); shape->lines[shape->nLines] = newSWFLineStyle2_filled(width, fill, flags, miterLimit); return ++shape->nLines; }
/* * set render hinting flags * possible values: * SWF_SHAPE_USESCALINGSTROKES SWF_SHAPE_USENONSCALINGSTROKES */ void SWFShape_setRenderHintingFlags(SWFShape shape, int flags) { flags &= (SWF_SHAPE_USESCALINGSTROKES | SWF_SHAPE_USENONSCALINGSTROKES); shape->flags = flags; SWFShape_useVersion(shape, SWF_SHAPE4); }