Class VGAScreen
Controls VGA text-mode.
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
The text-mode colors used by the display.
Declaration
public static int Colors
Field Value
Type | Description |
---|---|
System.Int32 |
PixelHeight
The height of each pixel.
Declaration
public static int PixelHeight
Field Value
Type | Description |
---|---|
System.Int32 |
PixelWidth
The width of each pixel.
Declaration
public static int PixelWidth
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceSetFont(Byte[], Int32)
Sets the used text-mode font.
Declaration
public static void SetFont(byte[] fontData, int fontHeight)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | fontData | The data of the font. |
System.Int32 | fontHeight | The height of each character in the font. |
Exceptions
Type | Condition |
---|---|
System.Exception | Thrown when font height > 32. |
SetGraphicsMode(VGADriver.ScreenSize, ColorDepth)
Sets the currently used graphics mode.
Declaration
public static void SetGraphicsMode(VGADriver.ScreenSize screenSize, ColorDepth colorDepth)
Parameters
Type | Name | Description |
---|---|---|
VGADriver.ScreenSize | screenSize | The size of the screen. |
ColorDepth | colorDepth | The color depth of each pixel. |
Exceptions
Type | Condition |
---|---|
System.Exception | Thrown if screen size or color depth not supported. |
SetTextMode(VGADriver.TextSize)
Sets the currently used text mode.
Declaration
public static void SetTextMode(VGADriver.TextSize size)
Parameters
Type | Name | Description |
---|---|---|
VGADriver.TextSize | size | The text mode size. |