Class VBECanvas
Defines a VBE (VESA Bios Extensions) canvas implementation. Please note
that this implementation of Canvas only works on BIOS
implementations, meaning that it is not available on UEFI systems.
Inheritance
System.Object
VBECanvas
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 VBECanvas : Canvas
Constructors
|
Improve this Doc
View Source
VBECanvas()
Initializes a new instance of the VBECanvas class.
Declaration
|
Improve this Doc
View Source
VBECanvas(Mode)
Initializes a new instance of the VBECanvas class.
Declaration
public VBECanvas(Mode mode)
Parameters
Type |
Name |
Description |
Mode |
mode |
The display mode to use.
|
Properties
|
Improve this Doc
View Source
AvailableModes
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 Source
DefaultGraphicsMode
Declaration
public override Mode DefaultGraphicsMode { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Mode
Declaration
public override Mode Mode { get; set; }
Property Value
Overrides
Methods
|
Improve this Doc
View Source
Clear(Color)
Declaration
public override void Clear(Color aColor)
Parameters
Type |
Name |
Description |
System.Drawing.Color |
aColor |
|
Overrides
|
Improve this Doc
View Source
Clear(Int32)
Declaration
public override void Clear(int aColor)
Parameters
Type |
Name |
Description |
System.Int32 |
aColor |
|
Overrides
|
Improve this Doc
View Source
CroppedDrawImage(Image, Int32, Int32, Int32, Int32, Boolean)
Declaration
public override void CroppedDrawImage(Image aImage, int aX, int aY, int aWidth, int aHeight, bool preventOffBoundPixels = true)
Parameters
Type |
Name |
Description |
Image |
aImage |
|
System.Int32 |
aX |
|
System.Int32 |
aY |
|
System.Int32 |
aWidth |
|
System.Int32 |
aHeight |
|
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[] aColors, int aX, int aY, int aWidth, int aHeight)
Parameters
Type |
Name |
Description |
System.Drawing.Color[] |
aColors |
|
System.Int32 |
aX |
|
System.Int32 |
aY |
|
System.Int32 |
aWidth |
|
System.Int32 |
aHeight |
|
Overrides
|
Improve this Doc
View Source
DrawArray(Int32[], Int32, Int32, Int32, Int32)
Declaration
public override void DrawArray(int[] aColors, int aX, int aY, int aWidth, int aHeight)
Parameters
Type |
Name |
Description |
System.Int32[] |
aColors |
|
System.Int32 |
aX |
|
System.Int32 |
aY |
|
System.Int32 |
aWidth |
|
System.Int32 |
aHeight |
|
Overrides
|
Improve this Doc
View Source
DrawArray(Int32[], Int32, Int32, Int32, Int32, Int32)
Declaration
public override void DrawArray(int[] aColors, int aX, int aY, int aWidth, int aHeight, int startIndex)
Parameters
Type |
Name |
Description |
System.Int32[] |
aColors |
|
System.Int32 |
aX |
|
System.Int32 |
aY |
|
System.Int32 |
aWidth |
|
System.Int32 |
aHeight |
|
System.Int32 |
startIndex |
|
Overrides
|
Improve this Doc
View Source
DrawFilledRectangle(Color, Int32, Int32, Int32, Int32, Boolean)
Declaration
public override void DrawFilledRectangle(Color aColor, int aX, int aY, int aWidth, int aHeight, bool preventOffBoundPixels = true)
Parameters
Type |
Name |
Description |
System.Drawing.Color |
aColor |
|
System.Int32 |
aX |
|
System.Int32 |
aY |
|
System.Int32 |
aWidth |
|
System.Int32 |
aHeight |
|
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 aColor, int aX, int aY)
Parameters
Type |
Name |
Description |
System.Drawing.Color |
aColor |
|
System.Int32 |
aX |
|
System.Int32 |
aY |
|
Overrides
|
Improve this Doc
View Source
DrawPoint(Int32, Int32, Int32)
Declaration
public override void DrawPoint(int aColor, int aX, int aY)
Parameters
Type |
Name |
Description |
System.Int32 |
aColor |
|
System.Int32 |
aX |
|
System.Int32 |
aY |
|
Overrides
|
Improve this Doc
View Source
DrawPoint(UInt32, Int32, Int32)
Declaration
public override void DrawPoint(uint aColor, int aX, int aY)
Parameters
Type |
Name |
Description |
System.UInt32 |
aColor |
|
System.Int32 |
aX |
|
System.Int32 |
aY |
|
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
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
GetPointColor(Int32, Int32)
Declaration
public override Color GetPointColor(int aX, int aY)
Parameters
Type |
Name |
Description |
System.Int32 |
aX |
|
System.Int32 |
aY |
|
Returns
Type |
Description |
System.Drawing.Color |
|
Overrides
|
Improve this Doc
View Source
GetRawPointColor(Int32, Int32)
Declaration
public override int GetRawPointColor(int aX, int aY)
Parameters
Type |
Name |
Description |
System.Int32 |
aX |
|
System.Int32 |
aY |
|
Returns
Type |
Description |
System.Int32 |
|
Overrides
|
Improve this Doc
View Source
Name()
Declaration
public override string Name()
Returns
Type |
Description |
System.String |
|
Overrides