• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class ByteContentStreamSource

Reads a font from a byte array already held in memory.

Inheritance
object
ByteContentStreamSource
Implements
IStreamSource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
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.

Implements

IStreamSource
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX