private LineStyle[] ReadLineStyleArray(SWFDataTypeReader shapeReader, Tag format)
{
int lineCount = shapeReader.ReadUI8();
if (lineCount == 0xFF)
{
lineCount = shapeReader.ReadUI16();
}
LineStyle[] lineStyles = new LineStyle[lineCount];
if (format == Tag.DefineShape4)
{
for (int i = 0; i < lineCount; i++)
{
lineStyles[i] = this.ReadLineStyle2(shapeReader, format);
}
}
else
{
for (int i = 0; i < lineCount; i++)
{
lineStyles[i] = this.ReadLineStyle(shapeReader, format);
}
}
return lineStyles;
}