Class SVGAIICanvas
Defines a VMWare SVGAII canvas implementation. Please note that this implementation of Canvas can only be used with virtualizers that do implement SVGAII, meaning that this class will not work on regular hardware.
Inherited Members
Namespace: Cosmos.System.Graphics
Assembly: Cosmos.System2.dll
Syntax
public class SVGAIICanvas : Canvas
Constructors
| Improve this Doc View SourceSVGAIICanvas()
Initializes a new instance of the SVGAIICanvas class.
Declaration
public SVGAIICanvas()
SVGAIICanvas(Mode)
Initializes a new instance of the SVGAIICanvas class.
Declaration
public SVGAIICanvas(Mode aMode)
Parameters
Type | Name | Description |
---|---|---|
Mode | aMode | The graphics mode. |
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 SourceDefaultGraphicsMode
Declaration
public override Mode DefaultGraphicsMode { 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)
Declaration
public override void Clear(Color color)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | color |
Overrides
| Improve this Doc View SourceClear(Int32)
Declaration
public override void Clear(int color)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | color |
Overrides
| Improve this Doc View SourceCopyPixels(Int32, Int32, Int32, Int32, Int32, Int32)
Performs a bit blit operation, copying pixels from one region to another.
Declaration
public void CopyPixels(int srcX, int srcY, int dstX, int dstY, int width = 1, int height = 1)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | srcX | The source X coordinate. |
System.Int32 | srcY | The source Y coordinate. |
System.Int32 | dstX | The destination X coordinate. |
System.Int32 | dstY | The destination Y coordinate. |
System.Int32 | width | The width of the region. |
System.Int32 | height | The height of the region. |
Exceptions
Type | Condition |
---|---|
System.NotImplementedException | Thrown if VMWare SVGA 2 has no rectangle copy capability |
CreateCursor()
Creates the hardware cursor.
Declaration
public void CreateCursor()
Disable()
Declaration
public override void Disable()
Overrides
| Improve this Doc View SourceDisplay()
Declaration
public override void Display()
Overrides
| Improve this Doc View SourceDrawChar(Char, Font, Color, Int32, Int32)
Declaration
public override void DrawChar(char c, Font font, Color color, int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Char | c | |
Font | font | |
System.Drawing.Color | color | |
System.Int32 | x | |
System.Int32 | y |
Overrides
| Improve this Doc View SourceDrawFilledRectangle(Color, Int32, Int32, Int32, Int32)
Declaration
public override void DrawFilledRectangle(Color color, int xStart, int yStart, int width, int height)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | color | |
System.Int32 | xStart | |
System.Int32 | yStart | |
System.Int32 | width | |
System.Int32 | height |
Overrides
| Improve this Doc View SourceDrawImage(Image, Int32, Int32)
Declaration
public override void DrawImage(Image image, int x, int y)
Parameters
Type | Name | Description |
---|---|---|
Image | image | |
System.Int32 | x | |
System.Int32 | y |
Overrides
| Improve this Doc View SourceDrawPoint(Color, Int32, Int32)
Declaration
public override void DrawPoint(Color color, int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | color | |
System.Int32 | x | |
System.Int32 | y |
Overrides
| Improve this Doc View SourceDrawString(String, Font, Color, Int32, Int32)
Declaration
public override void DrawString(string str, Font font, Color color, int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.String | str | |
Font | font | |
System.Drawing.Color | color | |
System.Int32 | x | |
System.Int32 | y |
Overrides
| Improve this Doc View SourceGetPixel(Int32, Int32)
Declaration
public Color GetPixel(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | |
System.Int32 | y |
Returns
Type | Description |
---|---|
System.Drawing.Color |
GetPointColor(Int32, Int32)
Declaration
public override Color GetPointColor(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | |
System.Int32 | y |
Returns
Type | Description |
---|---|
System.Drawing.Color |
Overrides
| Improve this Doc View SourceMovePixel(Int32, Int32, Int32, Int32)
Moves a single pixel.
Declaration
public void MovePixel(int x, int y, int newX, int newY)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | The X coordinate. |
System.Int32 | y | The Y coordinate. |
System.Int32 | newX | The new X coordinate. |
System.Int32 | newY | The new Y coordinate. |
Name()
Declaration
public override string Name()
Returns
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceSetCursor(Boolean, Int32, Int32)
Sets the state of the cursor.
Declaration
public void SetCursor(bool visible, int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | visible | Whether the cursor should be visible. |
System.Int32 | x | The X coordinate of the cursor. |
System.Int32 | y | The Y coordinate of the cursor. |