Method Read
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Read(byte[])
Reads a table from the bytes of a file. The head tells a colour-dependent table (CTBVER1) from a named one
(STBVER1); the numbers after it are not checked, the stream is inflated to its end. A block or a line the
reader does not know is passed over, a value that does not read keeps its default, a pen or a screening out of its
range is brought to the range, and a colour-dependent table that lists fewer than 255 styles keeps the default of
the others.
public static CadPlotStyleSheet Read(byte[] bytes)
Parameters
bytesbyte[]The file's bytes.
Returns
- CadPlotStyleSheet
The table, its FileName empty.
Exceptions
- ArgumentNullException
Thrown when the bytes are null.
- InvalidDataException
Thrown when the bytes are not a plot style table: no head, or a damaged stream.