• 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 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
Canvas
VBECanvas
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.DrawString(String, Font, Color, Int32, Int32)
Canvas.DrawChar(Char, Font, Color, Int32, Int32)
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 VBECanvas : Canvas

Constructors

| Improve this Doc View Source

VBECanvas()

Initializes a new instance of the VBECanvas class.

Declaration
public VBECanvas()
| 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
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

Declaration
public override Mode Mode { get; set; }
Property Value
Type Description
Mode
Overrides
Canvas.Mode

Methods

| Improve this Doc View Source

Clear(Color)

Declaration
public override void Clear(Color aColor)
Parameters
Type Name Description
System.Drawing.Color aColor
Overrides
Canvas.Clear(Color)
| Improve this Doc View Source

Clear(Int32)

Declaration
public override void Clear(int aColor)
Parameters
Type Name Description
System.Int32 aColor
Overrides
Canvas.Clear(Int32)
| 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
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[] 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
Canvas.DrawArray(Color[], Int32, Int32, Int32, Int32)
| 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
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[] 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
Canvas.DrawArray(Int32[], Int32, Int32, Int32, Int32, Int32)
| 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
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 aColor, int aX, int aY)
Parameters
Type Name Description
System.Drawing.Color aColor
System.Int32 aX
System.Int32 aY
Overrides
Canvas.DrawPoint(Color, Int32, Int32)
| 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
Canvas.DrawPoint(Int32, Int32, Int32)
| 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
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

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

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
Canvas.GetPointColor(Int32, Int32)
| 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
Canvas.GetRawPointColor(Int32, Int32)
| Improve this Doc View Source

Name()

Declaration
public override string Name()
Returns
Type Description
System.String
Overrides
Canvas.Name()
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
☀
☾