Class ByteContentStreamSource
Reads a font from a byte array already held in memory.
Implements
Inherited Members
Namespace: DRIT.Drawing.Font.Sources
Assembly: DRIT.Drawing.dll
Syntax
public sealed class ByteContentStreamSource : IStreamSource
Constructors
ByteContentStreamSource(byte[])
Initializes a new ByteContentStreamSource with the specified byte array.
Declaration
public ByteContentStreamSource(byte[] data)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | data | The byte array containing font data. |
Methods
GetFontStream()
Opens and returns a stream over the font data. The caller is responsible for disposing the returned stream.
Declaration
public Stream GetFontStream()
Returns
| Type | Description |
|---|---|
| Stream |
Remarks
Returns a new MemoryStream each time; the caller must dispose it.