public void SetStroke(IOpenVGPaint color, float[] dashPattern = null, VGCapStyle capStyle = VGCapStyle.VG_CAP_BUTT, VGJoinStyle joinStyle = VGJoinStyle.VG_JOIN_BEVEL) { mStrokePaint = color; mDashPattern = dashPattern; mCapStyle = (int)capStyle; mJoinStyle = (int)joinStyle; }
private void Initialize(IntPtr path, IOpenVGPaint stroke, IOpenVGPaint fill) { if (path == new IntPtr()) { throw new ArgumentNullException(); } mPath = path; Scale = 1.0f; X = 0; Y = 0; StrokeWidth = 1.0f; mStrokePaint = stroke; mFillPaint = fill; }
public void SetFill(IOpenVGPaint color) { mFillPaint = color; }
public VGPath(IOpenVGPaint stroke, IOpenVGPaint fill) { //mPath = VG.vgCreatePath(0, VGPathDatatype.VG_PATH_DATATYPE_F, 1.0f, 0.0f, 0, 0, VGPathCapabilities.VG_PATH_CAPABILITY_ALL); mPath = VG.vgCreatePath(0, VGPathDatatype.VG_PATH_DATATYPE_S_16, 1, 0, 0, 0, VGPathCapabilities.VG_PATH_CAPABILITY_ALL); Initialize(mPath, stroke, fill); }