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()
SVGAIICanvas(Mode)
Create new instance of the SVGAIICanvas class.
Declaration
public SVGAIICanvas(Mode aMode)
Parameters
Type | Name | Description |
---|---|---|
Mode | aMode | A graphics mode. |
Properties
| Improve this Doc View SourceAvailableModes
Available SVGA 2 supported video modes.
SD:
HD:
HDR:
HDTV:
2K:
Declaration
public override List<Mode> AvailableModes { get; }
Property Value
Type | Description |
---|---|
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
Methods
| Improve this Doc View SourceClear(Color)
Clear screen to specified color.
Declaration
public override void Clear(Color aColor)
Parameters
Type | Name | Description |
---|---|---|
Color | aColor | Color. |
Overrides
| Improve this Doc View SourceCopyPixel(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. |
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()
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 |
---|---|---|
Color[] | aColors | |
System.Int32 | aX | |
System.Int32 | aY | |
System.Int32 | aWidth | |
System.Int32 | aHeight |
Overrides
| Improve this Doc View SourceDrawFilledRectangle(Pen, Int32, Int32, Int32, Int32)
Draw filled rectangle.
Declaration
public override void DrawFilledRectangle(Pen aPen, int aX_start, int aY_start, int aWidth, int aHeight)
Parameters
Type | Name | Description |
---|---|---|
Pen | aPen | Pen 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
| Improve this Doc View SourceDrawPoint(Pen, Int32, Int32)
Draw point.
Declaration
public override void DrawPoint(Pen aPen, int aX, int aY)
Parameters
Type | Name | Description |
---|---|---|
Pen | aPen | |
System.Int32 | aX | |
System.Int32 | aY |
Overrides
| Improve this Doc View SourceDrawPoint(Pen, Single, Single)
Draw point. Not implemented.
Declaration
public override void DrawPoint(Pen aPen, float aX, float aY)
Parameters
Type | Name | Description |
---|---|---|
Pen | aPen | |
System.Single | aX | |
System.Single | aY |
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 |
---|---|
Color | Color value. |
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 |
---|---|
Color | Color value. |
Overrides
| Improve this Doc View SourceMovePixel(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. |
SetCursor(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. |