Class VBECanvas
VBECanvas class. Used to control screen, by VBE (VESA BIOS Extensions) standard. See also: Canvas.
Inherited Members
Namespace: Cosmos.System.Graphics
Assembly: Cosmos.System2.dll
Syntax
public class VBECanvas : Canvas
Constructors
| Improve this Doc View SourceVBECanvas()
Create new instance of the
Declaration
public VBECanvas()
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | Thrown if default mode (1024x768x32) is not suppoted. |
VBECanvas(Mode)
Create new instance of the
Declaration
public VBECanvas(Mode aMode)
Parameters
Type | Name | Description |
---|---|---|
Mode | aMode |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | Thrown if mode is not suppoted. |
Properties
| Improve this Doc View SourceAvailableModes
Available VBE supported video modes.
Low res:
- 320x240x32.
- 640x480x32.
- 800x600x32.
- 1024x768x32.
HD:
- 1280x720x32.
- 1280x1024x32.
HDR:
- 1366x768x32.
- 1680x1050x32.
HDTV:
- 1920x1080x32.
- 1920x1200x32.
Declaration
public override List<Mode> AvailableModes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Mode> |
Overrides
| Improve this Doc View SourceDefaultGraphicMode
Override Canvas default graphics mode.
Declaration
public override Mode DefaultGraphicMode { get; }
Property Value
Type | Description |
---|---|
Mode |
Overrides
| Improve this Doc View SourceMode
Get and set video mode.
Declaration
public override Mode Mode { get; set; }
Property Value
Type | Description |
---|---|
Mode |
Overrides
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | (set) Thrown if mode is not suppoted. |
Methods
| Improve this Doc View SourceClear(Color)
Clear screen to specified color.
Declaration
public override void Clear(Color aColor)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | aColor |
Overrides
| Improve this Doc View SourceClear(Int32)
Clear screen to specified color.
Declaration
public override void Clear(int aColor)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | aColor |
Overrides
| Improve this Doc View SourceDisable()
Disables VBE Graphics mode, parent method returns to VGA text mode (80x25)
Declaration
public override void Disable()
Overrides
| Improve this Doc View SourceDisplay()
Display screen
Declaration
public override void Display()
Overrides
| Improve this Doc View SourceDrawArray(Color[], Int32, Int32, Int32, Int32)
Draw array of colors.
Declaration
public override void DrawArray(Color[] aColors, int aX, int aY, int aWidth, int aHeight)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color[] | aColors | Colors array. |
System.Int32 | aX | X coordinate. |
System.Int32 | aY | Y coordinate. |
System.Int32 | aWidth | Width. |
System.Int32 | aHeight | unused. |
Overrides
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | Thrown if coordinates are invalid, or width is less than 0. |
System.NotImplementedException | Thrown if color depth is not supported. |
DrawFilledRectangle(Color, Int32, Int32, Int32, Int32)
Draw filled rectangle.
Declaration
public override void DrawFilledRectangle(Color aColor, int aX, int aY, int aWidth, int aHeight)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | aColor | Color to draw with. |
System.Int32 | aX | X coordinate. |
System.Int32 | aY | Y coordinate. |
System.Int32 | aWidth | Width. |
System.Int32 | aHeight | Height. |
Overrides
| Improve this Doc View SourceDrawImage(Image, Int32, Int32)
Draw image.
Declaration
public override void DrawImage(Image aImage, int aX, int aY)
Parameters
Type | Name | Description |
---|---|---|
Image | aImage | Image. |
System.Int32 | aX | X coordinate. |
System.Int32 | aY | Y coordinate. |
Overrides
| Improve this Doc View SourceDrawPoint(Color, Int32, Int32)
Draw point to the screen.
Declaration
public override void DrawPoint(Color aColor, int aX, int aY)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | aColor | Color to draw the point with. |
System.Int32 | aX | X coordinate. |
System.Int32 | aY | Y coordinate. |
Overrides
Exceptions
Type | Condition |
---|---|
System.NotImplementedException | Thrown if color depth is not supported (currently only 32 is supported). |
DrawPoint(Color, Single, Single)
Draw point to the screen. Not implemented.
Declaration
public override void DrawPoint(Color aColor, float aX, float aY)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | aColor | Color to draw the point with. |
System.Single | aX | X coordinate. |
System.Single | aY | Y coordinate. |
Overrides
Exceptions
Type | Condition |
---|---|
System.NotImplementedException | Thrown always (only int coordinats supported). |
GetPointColor(Int32, Int32)
Get point color.
Declaration
public override Color GetPointColor(int aX, int aY)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | aX | X coordinate. |
System.Int32 | aY | Y coordinate. |
Returns
Type | Description |
---|---|
System.Drawing.Color | Color value. |
Overrides
| Improve this Doc View SourceName()
Name of the backend
Declaration
public override string Name()
Returns
Type | Description |
---|---|
System.String |