Beispiel #1
0
        public override void loadFrom(BinaryReader reader, PersistContext ctx)
        {
            base.loadFrom(reader, ctx);

            int b = reader.ReadInt32();

            if (b == 1)
            {
                _blend           = new Blend();
                _blend.Factors   = ctx.loadFloatArray();
                _blend.Positions = ctx.loadFloatArray();
            }
            else
            {
                _blend = null;
            }

            _linearColors[0] = ctx.loadColor();
            _linearColors[1] = ctx.loadColor();

            b = reader.ReadInt32();
            if (b == 1)
            {
                _interpolationColors           = new ColorBlend();
                _interpolationColors.Colors    = ctx.loadColorArray();
                _interpolationColors.Positions = ctx.loadFloatArray();
            }
            else
            {
                _interpolationColors = null;
            }

            _angle = (float)reader.ReadDouble();
        }
Beispiel #2
0
 public virtual void loadFrom(BinaryReader reader, PersistContext ctx)
 {
     ctx.loadReference(this);
     _color         = ctx.loadColor();
     _compoundArray = ctx.loadFloatArray();
     _dashStyle     = (DashStyle)reader.ReadInt32();
     _dashPattern   = ctx.loadFloatArray();
     _dashOffset    = (float)reader.ReadDouble();
     _width         = (float)reader.ReadDouble();
     _lineJoin      = (LineJoin)reader.ReadInt32();
     _miterLimit    = (float)reader.ReadDouble();
 }
Beispiel #3
0
		public override void loadFrom(BinaryReader reader, PersistContext ctx)
		{
			base.loadFrom(reader, ctx);

			int b = reader.ReadInt32();
			if(b == 1)
			{
				_blend = new Blend();
				_blend.Factors = ctx.loadFloatArray();
				_blend.Positions = ctx.loadFloatArray();
			}
			else
			{
				_blend = null;
			}

			_linearColors[0] = ctx.loadColor();
			_linearColors[1] = ctx.loadColor();

			b = reader.ReadInt32();
			if(b == 1)
			{
				_interpolationColors = new ColorBlend();
				_interpolationColors.Colors = ctx.loadColorArray();
				_interpolationColors.Positions = ctx.loadFloatArray();
			}
			else
			{
				_interpolationColors = null;
			}

			_angle = (float)reader.ReadDouble();
		}
Beispiel #4
0
		public virtual void loadFrom(BinaryReader reader, PersistContext ctx)
		{
			ctx.loadReference(this);
			_color = ctx.loadColor();
			_compoundArray = ctx.loadFloatArray();
			_dashStyle = (DashStyle)reader.ReadInt32();
			_dashPattern = ctx.loadFloatArray();
			_dashOffset = (float)reader.ReadDouble();
			_width = (float)reader.ReadDouble();
			_lineJoin = (LineJoin)reader.ReadInt32();
			_miterLimit = (float)reader.ReadDouble();
		}
Beispiel #5
0
			public virtual void loadFrom(BinaryReader reader, PersistContext ctx)
			{
				int num = reader.ReadInt32();
				data = new float[num][];
				for (int i = 0; i < num; ++i)
					data[i] = ctx.loadFloatArray();
			}
Beispiel #6
0
		public override void loadFrom(BinaryReader reader, PersistContext ctx)
		{
			pts = ctx.loadFloatArray();
		}