Class SVGAIICanvas
SVGAIIScreen class. Used to draw ractengales to the screen. See also: Canvas.
Inherited Members
Namespace: Cosmos.System.Graphics
Assembly: Cosmos.System2.dll
Syntax
public class SVGAIICanvas : Canvas
Constructors
| Improve this Doc View SourceSVGAIICanvas()
Create new instance of the SVGAIICanvas class.
Declaration
public SVGAIICanvas()
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | Thrown if default graphics mode is not suppoted. |
SVGAIICanvas(Mode)
Create new instance of the SVGAIICanvas class.
Declaration
public SVGAIICanvas(Mode aMode)
Parameters
Type | Name | Description |
---|---|---|
Mode | aMode | A graphics mode. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | Thrown if mode is not suppoted. |
Properties
| Improve this Doc View SourceAvailableModes
Available SVGA 2 supported video modes.
SD:
- 320x200x32.
- 320x240x32.
- 640x480x32.
- 720x480x32.
- 800x600x32.
- 1024x768x32.
- 1152x768x32.
HD:
- 1280x720x32.
- 1280x768x32.
- 1280x800x32.
- 1280x1024x32.
HDR:
- 1360x768x32.
- 1366x768x32.
- 1440x900x32.
- 1400x1050x32.
- 1600x1200x32.
- 1680x1050x32.
HDTV:
- 1920x1080x32.
- 1920x1200x32.
2K:
- 2048x1536x32.
- 2560x1080x32.
- 2560x1600x32.
- 2560x2048x32.
- 3200x2048x32.
- 3200x2400x32.
- 3840x2400x32.
Declaration
public override List<Mode> AvailableModes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Mode> |
Overrides
| Improve this Doc View SourceDefaultGraphicMode
Override canvas dufault graphics mode.
Declaration
public override Mode DefaultGraphicMode { get; }
Property Value
Type | Description |
---|---|
Mode |
Overrides
| Improve this Doc View SourceMode
Get and set graphics 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 | Color. |
Overrides
Exceptions
Type | Condition |
---|---|
System.Exception | Thrown on memory access violation. |
System.NotImplementedException | Thrown if VMWare SVGA 2 has no rectange copy capability |
Clear(Int32)
Clear screen to specified color.
Declaration
public override void Clear(int aColor)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | aColor | Color in ARGB. |
Overrides
Exceptions
Type | Condition |
---|---|
System.Exception | Thrown on memory access violation. |
System.NotImplementedException | Thrown if VMWare SVGA 2 has no rectange copy capability |
CopyPixel(Int32, Int32, Int32, Int32, Int32, Int32)
Copy pixel
Declaration
public void CopyPixel(int aX, int aY, int aNewX, int aNewY, int aWidth = 1, int aHeight = 1)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | aX | A source X coordinate. |
System.Int32 | aY | A source Y coordinate. |
System.Int32 | aNewX | A destination X coordinate. |
System.Int32 | aNewY | A destination Y coordinate. |
System.Int32 | aWidth | A width. |
System.Int32 | aHeight | A height. |
Exceptions
Type | Condition |
---|---|
System.NotImplementedException | Thrown if VMWare SVGA 2 has no rectangle copy capability |
CreateCursor()
Create cursor.
Declaration
public void CreateCursor()
Disable()
Disables the SVGA driver, parent method returns to VGA text mode
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. Not implemented.
Declaration
public override void DrawArray(Color[] aColors, int aX, int aY, int aWidth, int aHeight)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color[] | aColors | Array of colors. |
System.Int32 | aX | X coordinate. |
System.Int32 | aY | Y coordinate. |
System.Int32 | aWidth | Width. |
System.Int32 | aHeight | Height. |
Overrides
Exceptions
Type | Condition |
---|---|
System.NotImplementedException | Thrown always. |
DrawChar(Char, Font, Color, Int32, Int32)
Draw char.
Declaration
public override void DrawChar(char c, Font aFont, Color color, int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Char | c | |
Font | aFont | Font used. |
System.Drawing.Color | color | Color. |
System.Int32 | x | X coordinate. |
System.Int32 | y | Y coordinate. |
Overrides
| Improve this Doc View SourceDrawFilledRectangle(Color, Int32, Int32, Int32, Int32)
Draw filled rectangle.
Declaration
public override void DrawFilledRectangle(Color aColor, int aX_start, int aY_start, int aWidth, int aHeight)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | aColor | color to draw with. |
System.Int32 | aX_start | starting X coordinate. |
System.Int32 | aY_start | starting Y coordinate. |
System.Int32 | aWidth | Width. |
System.Int32 | aHeight | Height. |
Overrides
Exceptions
Type | Condition |
---|---|
System.Exception | Thrown on memory access violation. |
System.NotImplementedException | Thrown if VMWare SVGA 2 has no rectange copy capability |
DrawImage(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.
Declaration
public override void DrawPoint(Color aColor, int aX, int aY)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | aColor | Color to draw with. |
System.Int32 | aX | |
System.Int32 | aY |
Overrides
Exceptions
Type | Condition |
---|---|
System.Exception | Thrown on memory access violation. |
DrawPoint(Color, Single, Single)
Draw point. Not implemented.
Declaration
public override void DrawPoint(Color aColor, float aX, float aY)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | aColor | Color to draw with. |
System.Single | aX | |
System.Single | aY |
Overrides
Exceptions
Type | Condition |
---|---|
System.NotImplementedException | Thrown always (only int coordinates supported). |
DrawString(String, Font, Color, Int32, Int32)
Draw string.
Declaration
public override void DrawString(string str, Font aFont, Color color, int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.String | str | string to draw. |
Font | aFont | Font used. |
System.Drawing.Color | color | Color. |
System.Int32 | x | X coordinate. |
System.Int32 | y | Y coordinate. |
Overrides
| Improve this Doc View SourceGetPixel(Int32, Int32)
Get pixel color.
Declaration
public Color GetPixel(int aX, int aY)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | aX | A X coordinate. |
System.Int32 | aY | A Y coordinate. |
Returns
Type | Description |
---|---|
System.Drawing.Color | Color value. |
Exceptions
Type | Condition |
---|---|
System.Exception | Thrown on memory access violation. |
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
Exceptions
Type | Condition |
---|---|
System.Exception | Thrown on memory access violation. |
MovePixel(Int32, Int32, Int32, Int32)
Move pixel
Declaration
public void MovePixel(int aX, int aY, int aNewX, int aNewY)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | aX | A X coordinate. |
System.Int32 | aY | A Y coordinate. |
System.Int32 | aNewX | A new X coordinate. |
System.Int32 | aNewY | A new Y coordinate. |
Exceptions
Type | Condition |
---|---|
System.NotImplementedException | Thrown if VMWare SVGA 2 has no rectange copy capability |
System.Exception | Thrown on memory access violation. |
Name()
Name of the backend
Declaration
public override string Name()
Returns
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceSetCursor(Boolean, Int32, Int32)
Set cursor.
Declaration
public void SetCursor(bool aVisible, int aX, int aY)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | aVisible | Visible. |
System.Int32 | aX | A X coordinate. |
System.Int32 | aY | A Y coordinate. |