private LineStyle ReadLineStyle(SWFDataTypeReader shapeReader, Tag format)
{
LineStyle ls = new LineStyle();
ls.Width = shapeReader.ReadUI16();
if (format == Tag.DefineShape || format == Tag.DefineShape2)
{
ls.Colour = shapeReader.ReadRGB();
}
else if (format == Tag.DefineShape3 || format == Tag.DefineShape4)
{
ls.Colour = shapeReader.ReadRGBA();
}
else
{
throw new SWFModellerException(SWFModellerError.Internal, "Can't line style in shape format " + format.ToString());
}
return ls;
}