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.
Inheritance
System.Object
SVGAIICanvas
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Cosmos.System2.dll
Syntax
public class SVGAIICanvas : Canvas
Constructors
|
Improve this Doc
View Source
SVGAIICanvas()
Declaration
|
Improve this Doc
View Source
SVGAIICanvas(Mode)
Declaration
public SVGAIICanvas(Mode aMode)
Parameters
Type |
Name |
Description |
Mode |
aMode |
The graphics mode.
|
Properties
|
Improve this Doc
View Source
AvailableModes
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 Source
DefaultGraphicsMode
Declaration
public override Mode DefaultGraphicsMode { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Mode
Get and set graphics mode.
Declaration
public override Mode Mode { get; set; }
Property Value
Overrides
Exceptions
Type |
Condition |
System.ArgumentOutOfRangeException |
(set) Thrown if mode is not suppoted.
|
Methods
|
Improve this Doc
View Source
Clear(Color)
Declaration
public override void Clear(Color color)
Parameters
Type |
Name |
Description |
System.Drawing.Color |
color |
|
Overrides
|
Improve this Doc
View Source
Clear(Int32)
Declaration
public override void Clear(int color)
Parameters
Type |
Name |
Description |
System.Int32 |
color |
|
Overrides
|
Improve this Doc
View Source
CopyPixels(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
|
|
Improve this Doc
View Source
CreateCursor()
Creates the hardware cursor.
Declaration
public void CreateCursor()
|
Improve this Doc
View Source
CroppedDrawImage(Image, Int32, Int32, Int32, Int32, Boolean)
Declaration
public override void CroppedDrawImage(Image image, int x, int y, int width, int height, bool preventOffBoundPixels = true)
Parameters
Type |
Name |
Description |
Image |
image |
|
System.Int32 |
x |
|
System.Int32 |
y |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
System.Boolean |
preventOffBoundPixels |
|
Overrides
|
Improve this Doc
View Source
Disable()
Declaration
public override void Disable()
Overrides
|
Improve this Doc
View Source
Display()
Declaration
public override void Display()
Overrides
|
Improve this Doc
View Source
DrawArray(Color[], Int32, Int32, Int32, Int32)
Declaration
public override void DrawArray(Color[] colors, int x, int y, int width, int height)
Parameters
Type |
Name |
Description |
System.Drawing.Color[] |
colors |
|
System.Int32 |
x |
|
System.Int32 |
y |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
Overrides
|
Improve this Doc
View Source
DrawArray(Int32[], Int32, Int32, Int32, Int32)
Declaration
public override void DrawArray(int[] colors, int x, int y, int width, int height)
Parameters
Type |
Name |
Description |
System.Int32[] |
colors |
|
System.Int32 |
x |
|
System.Int32 |
y |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
Overrides
|
Improve this Doc
View Source
DrawArray(Int32[], Int32, Int32, Int32, Int32, Int32)
Declaration
public override void DrawArray(int[] colors, int x, int y, int width, int height, int startIndex)
Parameters
Type |
Name |
Description |
System.Int32[] |
colors |
|
System.Int32 |
x |
|
System.Int32 |
y |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
System.Int32 |
startIndex |
|
Overrides
|
Improve this Doc
View Source
DrawChar(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 Source
DrawFilledRectangle(Color, Int32, Int32, Int32, Int32, Boolean)
Declaration
public override void DrawFilledRectangle(Color color, int xStart, int yStart, int width, int height, bool preventOffBoundPixels = true)
Parameters
Type |
Name |
Description |
System.Drawing.Color |
color |
|
System.Int32 |
xStart |
|
System.Int32 |
yStart |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
System.Boolean |
preventOffBoundPixels |
|
Overrides
|
Improve this Doc
View Source
DrawImage(Image, Int32, Int32, Boolean)
Declaration
public override void DrawImage(Image image, int x, int y, bool preventOffBoundPixels = true)
Parameters
Type |
Name |
Description |
Image |
image |
|
System.Int32 |
x |
|
System.Int32 |
y |
|
System.Boolean |
preventOffBoundPixels |
|
Overrides
|
Improve this Doc
View Source
DrawPoint(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 Source
DrawPoint(Int32, Int32, Int32)
Declaration
public override void DrawPoint(int color, int x, int y)
Parameters
Type |
Name |
Description |
System.Int32 |
color |
|
System.Int32 |
x |
|
System.Int32 |
y |
|
Overrides
|
Improve this Doc
View Source
DrawPoint(UInt32, Int32, Int32)
Declaration
public override void DrawPoint(uint color, int x, int y)
Parameters
Type |
Name |
Description |
System.UInt32 |
color |
|
System.Int32 |
x |
|
System.Int32 |
y |
|
Overrides
|
Improve this Doc
View Source
DrawRectangle(Color, Int32, Int32, Int32, Int32)
Declaration
public override void DrawRectangle(Color color, int x, int y, int width, int height)
Parameters
Type |
Name |
Description |
System.Drawing.Color |
color |
|
System.Int32 |
x |
|
System.Int32 |
y |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
Overrides
|
Improve this Doc
View Source
DrawString(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 Source
GetImage(Int32, Int32, Int32, Int32)
Declaration
public override Bitmap GetImage(int x, int y, int width, int height)
Parameters
Type |
Name |
Description |
System.Int32 |
x |
|
System.Int32 |
y |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
Returns
Overrides
|
Improve this Doc
View Source
GetPixel(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 |
|
|
Improve this Doc
View Source
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 Source
GetRawPointColor(Int32, Int32)
Declaration
public override int GetRawPointColor(int x, int y)
Parameters
Type |
Name |
Description |
System.Int32 |
x |
|
System.Int32 |
y |
|
Returns
Type |
Description |
System.Int32 |
|
Overrides
|
Improve this Doc
View Source
MovePixel(Int32, Int32, Int32, Int32)
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.
|
|
Improve this Doc
View Source
Name()
Declaration
public override string Name()
Returns
Type |
Description |
System.String |
|
Overrides
|
Improve this Doc
View Source
SetCursor(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.
|