ReadData() public method

Reads the data.
public ReadData ( BufferedBinaryReader binaryReader, ShapeType shapeType ) : void
binaryReader SwfDotNet.IO.Utils.BufferedBinaryReader Binary reader.
shapeType ShapeType Shape type.
return void
Exemplo n.º 1
0
        /// <summary>
        /// Reads the data.
        /// </summary>
        /// <param name="binaryReader">Binary reader.</param>
        /// <param name="shapeType">Shape type.</param>
        public void ReadData(BufferedBinaryReader binaryReader, ShapeType shapeType)
        {
            byte numGradients = binaryReader.ReadByte();

            if (numGradients > 0)
            {
                for (int i = 0; i < numGradients; i++)
                {
                    GradientRecord gradientRecords = new GradientRecord();
                    gradientRecords.ReadData(binaryReader, shapeType);
                    this.Add(gradientRecords);
                }
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Reads the data.
        /// </summary>
        /// <param name="binaryReader">Binary reader.</param>
        /// <param name="shapeType">Shape type.</param>
        public void ReadData(BufferedBinaryReader binaryReader, ShapeType shapeType)
        {
            byte numGradients = binaryReader.ReadByte();

            if (numGradients > 0)
            {
                for (int i = 0; i < numGradients; i++)
                {
                    GradientRecord gradientRecords = new GradientRecord();
                    gradientRecords.ReadData(binaryReader, shapeType);
                    this.Add(gradientRecords);
                }
            }
        }