• Home
  • Install
  • Cosmos Website
  • Articles
  • Cosmos
  • X#
  • IL2CPU
Show / Hide Table of Contents
  • Cosmos.Core
    • ACPI
    • ACPI.RSDPtr
    • Bootstrap
    • CPU
    • GCImplementation
    • GCTable
    • Global
    • INTs
    • INTs.EFlagsEnum
    • INTs.ExceptionInterruptDelegate
    • INTs.IRQContext
    • INTs.IRQDelegate
    • INTs.MMXContext
    • INTs.TSS
    • IOPort
    • KernelPanics
    • ManagedMemoryBlock
    • MemoryBlock
    • MemoryBlock08
    • MemoryBlock16
    • MemoryBlock32
    • MemoryMapBlock
    • MemoryOperations
    • PIC
    • PIC.Cmd
    • RawMemoryMapBlock
    • VTable
    • VTablesImpl
  • Cosmos.Core.IOGroup
    • ATA
    • PIC
    • PS2Controller
  • Cosmos.Core.Memory
    • Heap
    • HeapLarge
    • HeapMedium
    • HeapSmall
    • ObjectGCStatus
    • RAT
    • RAT.PageType
    • RootSMTBlock
    • SMTBlock
    • SMTPage
  • Cosmos.Core.MemoryGroup
    • AHCI
  • Cosmos.Core.Multiboot
    • Multiboot2
  • Cosmos.Core.Multiboot.Tags
    • AcpiNew
    • AcpiOld
    • BasicMemoryInformation
    • EFI64
    • Framebuffer
    • MB2Tag
    • MemoryMap
  • Cosmos.Core_Asm
    • ArrayClearAsm
    • ArrayGetLengthAsm
    • ArrayImpl
    • ArrayInternalCopyAsm
    • BufferBlockCopyAsm
    • BufferImpl
    • CPUCanReadCPUIDAsm
    • CPUDisableINTsAsm
    • CPUEnableINTsAsm
    • CPUGetEBPValue
    • CPUGetEndOfKernelAsm
    • CPUGetESPValue
    • CPUGetStackStart
    • CPUHaltAsm
    • CPUImpl
    • CPUInitFloatAsm
    • CPUInitSSEAsm
    • CPUReadCPUIDAsm
    • CPUReadModelSpecificRegisterAsm
    • CPUReadTimestampCounterAsm
    • CPUSetESPValue
    • CPUUpdateIDTAsm
    • CPUZeroFillAsm
    • DelegateCtorAsm
    • DelegateGetMulticastInvokeAsm
    • DelegateImpl
    • DelegateInvokeAsm
    • GCImplementationImpl
    • IOPortImpl
    • Multiboot2Impl
    • Multiboot2ImplAsm
    • RuntimeHelpersImpl
  • Cosmos.Core_Asm.MemoryOperations
    • MemoryOperationsCopy128BlocksAsm
    • MemoryOperationsCopy128BytesAsm
    • MemoryOperationsCopy16BytesAsm
    • MemoryOperationsCopy32BytesAsm
    • MemoryOperationsCopy64BytesAsm
    • MemoryOperationsFill16BlocksAsm
  • Cosmos.Debug.Kernel
    • Debugger
    • DebuggerFactory
  • Cosmos.HAL
    • BaudRate
    • Bootstrap
    • CardType
    • ClassID
    • COMPort
    • DataReceivedHandler
    • Device
    • DeviceID
    • Global
    • KeyboardBase
    • KeyboardBase.KeyPressedEventHandler
    • MouseBase
    • MouseBase.MouseChangedEventHandler
    • NetworkDevice
    • PCI
    • PCIBaseAddressBar
    • PCIDevice
    • PCIDevice.Config
    • PCIDevice.DeviceClass
    • PCIDevice.PCIBist
    • PCIDevice.PCICommand
    • PCIDevice.PCIHeaderType
    • PCIDevice.PCIInterruptPIN
    • PCIDeviceBridge
    • PCIDeviceCardbus
    • PCIDeviceNormal
    • PCSpeaker
    • PIT
    • PIT.PITTimer
    • PIT.PITTimer.OnTrigger
    • Power
    • ProgramIF
    • PS2Controller
    • PS2Keyboard
    • PS2Mouse
    • RTC
    • SerialPort
    • SpeakerExtensions
    • SubclassID
    • TextScreen
    • TextScreenBase
    • TextScreenHelpers
    • VendorID
  • Cosmos.HAL.Audio
    • AudioBitDepth
    • AudioBuffer
    • IAudioBufferProvider
    • SampleFormat
  • Cosmos.HAL.BlockDevice
    • AHCI
    • Ata
    • Ata.BusPositionEnum
    • Ata.ControllerIdEnum
    • ATA_PIO
    • ATA_PIO.Cmd
    • ATA_PIO.DvcSelVal
    • ATA_PIO.Ident
    • ATA_PIO.SpecLevel
    • ATA_PIO.Status
    • ATAPI
    • ATAPI.PacketCommands
    • BlockDevice
    • BlockDeviceType
    • EBR
    • EBR.PartInfo
    • GPT
    • GPT.GPartInfo
    • IDE
    • MBR
    • MBR.PartInfo
    • Partition
  • Cosmos.HAL.BlockDevice.Ports
    • SATA
    • SATAPI
    • StoragePort
  • Cosmos.HAL.BlockDevice.Registers
    • AHCISignature
    • ATACommands
    • ATADeviceStatus
    • Base
    • Bases
    • CommandAndStatus
    • CurrentInterfaceSpeedStatus
    • DeviceDetectionStatus
    • FISRegisterD2H
    • FISRegisterH2D
    • FISSize
    • FISType
    • GenericRegisters
    • HBACommandHeader
    • HBACommandTable
    • HBAPRDTEntry
    • InterfacePowerManagementStatus
    • InterruptEnable
    • InterruptStatus
    • PortRegisters
    • PortType
  • Cosmos.HAL.Drivers.Audio
    • AC97
    • AudioDriver
  • Cosmos.HAL.Drivers.Network
    • AMDPCNetII
    • E1000
    • E1000.RXDesc
    • E1000.TXDesc
    • E1000DeviceID
    • RTL8139
  • Cosmos.HAL.Drivers.USB
    • USBHost
  • Cosmos.HAL.Drivers.Video
    • VBEDriver
    • VGADriver
    • VGADriver.ColorDepth
    • VGADriver.ScreenSize
    • VGADriver.TextSize
  • Cosmos.HAL.Drivers.Video.SVGAII
    • Capability
    • FIFO
    • FIFOCommand
    • ID
    • IOPortOffset
    • Register
    • VMWareSVGAII
  • Cosmos.HAL.Network
    • MACAddress
    • NetworkInit
  • Cosmos.System
    • Console
    • ConsoleKeyEx
    • ConsoleKeyExExtensions
    • Durations
    • Global
    • Kernel
    • KeyboardManager
    • KeyEvent
    • KeyEvent.KeyEventType
    • KeyMapping
    • MouseManager
    • MouseState
    • Notes
    • PCSExtensions
    • PCSpeaker
    • Power
    • ScanMapBase
    • VMTools
  • Cosmos.System.Audio
    • AudioManager
    • AudioMixer
    • AudioStream
  • Cosmos.System.Audio.DSP.Processing
    • AudioPostProcessor
    • GainPostProcessor
  • Cosmos.System.Audio.IO
    • AudioBufferReader
    • AudioBufferReadWriteBase
    • AudioBufferWriter
    • MemoryAudioStream
    • SeekableAudioStream
  • Cosmos.System.ExtendedASCII
    • CosmosEncodingProvider
  • Cosmos.System.FileSystem
    • CosmosVFS
    • Disk
    • FileSystem
    • FileSystemFactory
    • ManagedPartition
  • Cosmos.System.FileSystem.FAT
    • FatFileSystemFactory
  • Cosmos.System.FileSystem.FAT.Listing
    • FatDirectoryEntryAttributeConsts
    • FatDirectoryEntryMetadata
    • FatDirectoryEntryMetadata.LongFilenameEntryMetadata
  • Cosmos.System.FileSystem.ISO9660
    • ISO9660FileSystem
    • ISO9660FileSystemFactory
  • Cosmos.System.FileSystem.Listing
    • DirectoryEntry
    • DirectoryEntryTypeEnum
  • Cosmos.System.FileSystem.VFS
    • FileSystemManager
    • VFSBase
    • VFSManager
  • Cosmos.System.Graphics
    • Bitmap
    • Canvas
    • ColorDepth
    • ColorOrder
    • FullScreenCanvas
    • Image
    • ImageFormat
    • Mode
    • SVGAIICanvas
    • VBECanvas
    • VGACanvas
    • VGAScreen
  • Cosmos.System.Graphics.Fonts
    • Font
    • PCScreenFont
    • UnicodeMapping
  • Cosmos.System.Helpers
    • ArrayHelper
  • Cosmos.System.IO
    • ConsoleStream
    • SyncTextReader
  • Cosmos.System.Keyboard
    • KeyEventHelper
  • Cosmos.System.Network
    • EthernetPacket
    • NetworkDebugger
    • NetworkStack
  • Cosmos.System.Network.ARP
    • ARPPacket
  • Cosmos.System.Network.Config
    • DNSConfig
    • IPConfig
    • NetworkConfig
    • NetworkConfiguration
  • Cosmos.System.Network.IPv4
    • Address
    • EndPoint
    • ICMPClient
    • ICMPPacket
    • IPPacket
    • OutgoingBuffer
  • Cosmos.System.Network.IPv4.TCP
    • Flags
    • Status
    • Tcp
    • TCPOption
    • TCPPacket
    • TransmissionControlBlock
  • Cosmos.System.Network.IPv4.UDP
    • UdpClient
    • UDPPacket
  • Cosmos.System.Network.IPv4.UDP.DHCP
    • DHCPClient
    • DHCPOption
    • DHCPPacket
  • Cosmos.System.Network.IPv4.UDP.DNS
    • DNSAnswer
    • DnsClient
    • DNSPacket
    • DNSPacketAnswer
    • DNSPacketAsk
    • DNSQuery
    • ReplyCode
  • Cosmos.System.ScanMaps
    • DEStandardLayout
    • ESStandardLayout
    • FRStandardLayout
    • GBStandardLayout
    • TRStandardLayout
    • US_Dvorak
    • USStandardLayout

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
Canvas
SVGAIICanvas
Inherited Members
Canvas.Clear()
Canvas.DrawLine(Color, Int32, Int32, Int32, Int32)
Canvas.DrawCircle(Color, Int32, Int32, Int32)
Canvas.DrawFilledCircle(Color, Int32, Int32, Int32)
Canvas.DrawEllipse(Color, Int32, Int32, Int32, Int32)
Canvas.DrawFilledEllipse(Color, Int32, Int32, Int32, Int32)
Canvas.DrawArc(Int32, Int32, Int32, Int32, Color, Int32, Int32)
Canvas.DrawPolygon(Color, Point[])
Canvas.DrawSquare(Color, Int32, Int32, Int32)
Canvas.DrawTriangle(Color, Int32, Int32, Int32, Int32, Int32, Int32)
Canvas.DrawImage(Image, Int32, Int32, Int32, Int32, Boolean)
Canvas.DrawImageAlpha(Image, Int32, Int32, Boolean)
Canvas.CheckIfModeIsValid(Mode)
Canvas.ThrowIfModeIsNotValid(Mode)
Canvas.ThrowIfCoordNotValid(Int32, Int32)
Canvas.TrimLine(Int32, Int32, Int32, Int32)
Canvas.AlphaBlend(Color, Color, Byte)
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()
Namespace: Cosmos.System.Graphics
Assembly: Cosmos.System2.dll
Syntax
public class SVGAIICanvas : Canvas

Constructors

| Improve this Doc View Source

SVGAIICanvas()

Initializes a new instance of the SVGAIICanvas class.

Declaration
public SVGAIICanvas()
| Improve this Doc View Source

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 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
Canvas.AvailableModes
| Improve this Doc View Source

DefaultGraphicsMode

Declaration
public override Mode DefaultGraphicsMode { get; }
Property Value
Type Description
Mode
Overrides
Canvas.DefaultGraphicsMode
| Improve this Doc View Source

Mode

Get and set graphics mode.

Declaration
public override Mode Mode { get; set; }
Property Value
Type Description
Mode
Overrides
Canvas.Mode
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
Canvas.Clear(Color)
| Improve this Doc View Source

Clear(Int32)

Declaration
public override void Clear(int color)
Parameters
Type Name Description
System.Int32 color
Overrides
Canvas.Clear(Int32)
| 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
Canvas.CroppedDrawImage(Image, Int32, Int32, Int32, Int32, Boolean)
| Improve this Doc View Source

Disable()

Declaration
public override void Disable()
Overrides
Canvas.Disable()
| Improve this Doc View Source

Display()

Declaration
public override void Display()
Overrides
Canvas.Display()
| 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
Canvas.DrawArray(Color[], Int32, Int32, Int32, Int32)
| 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
Canvas.DrawArray(Int32[], Int32, Int32, Int32, Int32)
| 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
Canvas.DrawArray(Int32[], Int32, Int32, Int32, Int32, Int32)
| 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
Canvas.DrawChar(Char, Font, Color, Int32, Int32)
| 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
Canvas.DrawFilledRectangle(Color, Int32, Int32, Int32, Int32, Boolean)
| 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
Canvas.DrawImage(Image, Int32, Int32, Boolean)
| 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
Canvas.DrawPoint(Color, Int32, Int32)
| 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
Canvas.DrawPoint(Int32, Int32, Int32)
| 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
Canvas.DrawPoint(UInt32, Int32, Int32)
| 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
Canvas.DrawRectangle(Color, Int32, Int32, Int32, Int32)
| 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
Canvas.DrawString(String, Font, Color, Int32, Int32)
| 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
Type Description
Bitmap
Overrides
Canvas.GetImage(Int32, Int32, Int32, Int32)
| 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
Canvas.GetPointColor(Int32, Int32)
| 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
Canvas.GetRawPointColor(Int32, Int32)
| Improve this Doc View Source

MovePixel(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.

| Improve this Doc View Source

Name()

Declaration
public override string Name()
Returns
Type Description
System.String
Overrides
Canvas.Name()
| 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.

  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
☀
☾