예제 #1
0
        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;
        }
예제 #2
0
        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;
        }
예제 #3
0
 public void SetFill(IOpenVGPaint color)
 {
     mFillPaint = color;
 }
예제 #4
0
 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);
 }