Class VGAScreen
VGAScreen class. Used to control VGA textmode.
Inheritance
System.Object
VGAScreen
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
Assembly: Cosmos.System2.dll
Syntax
public class VGAScreen
Fields
| Improve this Doc View SourceColors
Get Colors
Declaration
public static int Colors
Field Value
Type | Description |
---|---|
System.Int32 |
PixelHeight
Get Height
Declaration
public static int PixelHeight
Field Value
Type | Description |
---|---|
System.Int32 |
PixelWidth
Get Width
Declaration
public static int PixelWidth
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceSetFont(Byte[], Int32)
Set a textmode font.
Declaration
public static void SetFont(byte[] fontData, int fontHeight)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | fontData | Font file. |
System.Int32 | fontHeight | Font Height. |
Exceptions
Type | Condition |
---|---|
System.Exception | Thrown when font height > 32. |
SetGraphicsMode(VGADriver.ScreenSize, ColorDepth)
Set graphics mode.
Declaration
public static void SetGraphicsMode(VGADriver.ScreenSize aScreenSize, ColorDepth aColorDepth)
Parameters
Type | Name | Description |
---|---|---|
VGADriver.ScreenSize | aScreenSize | |
ColorDepth | aColorDepth |
Exceptions
Type | Condition |
---|---|
System.Exception | Thrown if screen size / color depth not supported. |
SetTextMode(VGADriver.TextSize)
Set text mode.
Declaration
public static void SetTextMode(VGADriver.TextSize aSize)
Parameters
Type | Name | Description |
---|---|---|
VGADriver.TextSize | aSize |