Class Font
Represents a bitmap font.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Cosmos.System.Graphics.Fonts
Assembly: Cosmos.System2.dll
Syntax
public abstract class Font
Constructors
| Improve this Doc View SourceFont(Byte, Byte, Byte[])
Initializes a new instance of the Font class.
Declaration
public Font(byte width, byte height, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | width | The width of a single character in pixels |
System.Byte | height | The height of a single character in pixels |
System.Byte[] | data | The raw pixel data. |
Properties
| Improve this Doc View SourceData
Gets the raw pixel data of the bitmap font.
Declaration
public byte[] Data { get; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Height
The height of a single character in pixels.
Declaration
public byte Height { get; }
Property Value
Type | Description |
---|---|
System.Byte |
Width
The width of a single character in pixels.
Declaration
public byte Width { get; }
Property Value
Type | Description |
---|---|
System.Byte |
Methods
| Improve this Doc View SourceConvertByteToBitAddress(Byte, Int32)
Converts a byte to its byte address.
Declaration
public bool ConvertByteToBitAddress(byte byteToConvert, int bitToReturn)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | byteToConvert | |
System.Int32 | bitToReturn |
Returns
Type | Description |
---|---|
System.Boolean |