public ReadData ( |
||
binaryReader | Binary reader. | |
shapeType | ShapeType | Shape type. |
return | void |
/// <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); } } }
/// <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); } } }