示例#1
0
文件: VGState.cs 项目: liwq-net/XnaVG
        internal VGState(VGDevice device)
        {
            IsActive = false;
            Device = device;
            Projection = new VGMatrixStack(2);
            ImageToSurface = new VGMatrixStack(2);
            GlyphToSurface = new VGMatrixStack(3);
            PathToSurface = new VGMatrixStack(4);
            PathToFillPaint = new VGMatrixStack(4);
            PathToTextPaint = new VGMatrixStack(4);
            PathToStrokePaint = new VGMatrixStack(4);
            ColorTransformation = new VGCxFormStack(4);

            SetAntialiasing(VGAntialiasing.Better);
            ResetDefaultValues();
        }
示例#2
0
 internal VGCxFormStack(VGCxFormStack other)
 {
     CxForms = new Stack<VGCxForm>(other.CxForms.Reverse());
 }