Class VGADriver
Inheritance
System.Object
VGADriver
Assembly: Cosmos.HAL2.dll
Syntax
public class VGADriver : object
Constructors
|
Improve this Doc
View Source
VGADriver()
Declaration
Properties
|
Improve this Doc
View Source
Colors
Declaration
public int Colors { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
PixelHeight
Get and set pixel height.
Declaration
public int PixelHeight { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
PixelWidth
Declaration
public int PixelWidth { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
DrawFilledRectangle(Int32, Int32, Int32, Int32, UInt32)
Declaration
public void DrawFilledRectangle(int aX, int aY, int aW, int aH, uint aColor)
Parameters
Type |
Name |
Description |
System.Int32 |
aX |
X Position.
|
System.Int32 |
aY |
Y Position.
|
System.Int32 |
aW |
Rectangle width
|
System.Int32 |
aH |
Rectangle height
|
System.UInt32 |
aColor |
Rectangle color.
|
|
Improve this Doc
View Source
GetClosestColorInPalette(Color)
Declaration
public uint GetClosestColorInPalette(Color aColor)
Parameters
Type |
Name |
Description |
Color |
aColor |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
GetPaletteEntry(Int32)
Declaration
public Color GetPaletteEntry(int aIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
aIndex |
|
Returns
|
Improve this Doc
View Source
GetPixel(UInt32, UInt32)
Declaration
public uint GetPixel(uint aX, uint aY)
Parameters
Type |
Name |
Description |
System.UInt32 |
aX |
|
System.UInt32 |
aY |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
GetPixel320x200x8(UInt32, UInt32)
Declaration
public uint GetPixel320x200x8(uint aX, uint aY)
Parameters
Type |
Name |
Description |
System.UInt32 |
aX |
|
System.UInt32 |
aY |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
GetPixel640x480x4(UInt32, UInt32)
Declaration
public uint GetPixel640x480x4(uint aX, uint aY)
Parameters
Type |
Name |
Description |
System.UInt32 |
aX |
|
System.UInt32 |
aY |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
GetPixel720x480x4(UInt32, UInt32)
Declaration
public uint GetPixel720x480x4(uint aX, uint aY)
Parameters
Type |
Name |
Description |
System.UInt32 |
aX |
|
System.UInt32 |
aY |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
ReadPalette()
Declaration
public void ReadPalette()
|
Improve this Doc
View Source
SetGraphicsMode(VGADriver.ScreenSize, VGADriver.ColorDepth)
Declaration
public void SetGraphicsMode(VGADriver.ScreenSize aSize, VGADriver.ColorDepth aDepth)
Parameters
|
Improve this Doc
View Source
SetPaletteEntry(Int32, Color)
Declaration
public void SetPaletteEntry(int aIndex, Color aColor)
Parameters
Type |
Name |
Description |
System.Int32 |
aIndex |
|
Color |
aColor |
|
|
Improve this Doc
View Source
SetPaletteEntry(Int32, Byte, Byte, Byte)
Declaration
public void SetPaletteEntry(int aIndex, byte aR, byte aG, byte aB)
Parameters
Type |
Name |
Description |
System.Int32 |
aIndex |
Index.
|
System.Byte |
aR |
Red.
|
System.Byte |
aG |
Green.
|
System.Byte |
aB |
Blue.
|
|
Improve this Doc
View Source
SetPixel(UInt32, UInt32, Color)
The closest color in the palette will be found to be drawn
This is quite slow, so whenever possible use the index of the color
Declaration
public void SetPixel(uint aX, uint aY, Color aColor)
Parameters
Type |
Name |
Description |
System.UInt32 |
aX |
|
System.UInt32 |
aY |
|
Color |
aColor |
|
|
Improve this Doc
View Source
SetPixel(UInt32, UInt32, UInt32)
Declaration
public void SetPixel(uint aX, uint aY, uint aColor)
Parameters
Type |
Name |
Description |
System.UInt32 |
aX |
|
System.UInt32 |
aY |
|
System.UInt32 |
aColor |
The index of the color in the palette
|
|
Improve this Doc
View Source
SetPixel320x200x8(UInt32, UInt32, UInt32)
Declaration
public void SetPixel320x200x8(uint aX, uint aY, uint aC)
Parameters
Type |
Name |
Description |
System.UInt32 |
aX |
|
System.UInt32 |
aY |
|
System.UInt32 |
aC |
|
|
Improve this Doc
View Source
SetPixel640x480x4(UInt32, UInt32, UInt32)
Declaration
public void SetPixel640x480x4(uint aX, uint aY, uint aC)
Parameters
Type |
Name |
Description |
System.UInt32 |
aX |
|
System.UInt32 |
aY |
|
System.UInt32 |
aC |
|
|
Improve this Doc
View Source
SetPixel720x480x4(UInt32, UInt32, UInt32)
Declaration
public void SetPixel720x480x4(uint aX, uint aY, uint aC)
Parameters
Type |
Name |
Description |
System.UInt32 |
aX |
|
System.UInt32 |
aY |
|
System.UInt32 |
aC |
|
|
Improve this Doc
View Source
SetTextMode(VGADriver.TextSize)
Declaration
public void SetTextMode(VGADriver.TextSize aSize)
Parameters
|
Improve this Doc
View Source
WriteFont(Byte[], Byte)
Declaration
public void WriteFont(byte[] aFont, byte aFontHeight)
Parameters
Type |
Name |
Description |
System.Byte[] |
aFont |
|
System.Byte |
aFontHeight |
|