C# Class Mosa.DeviceSystem.PixelPaletteGraphicsAdapter

Translates IPixelPaletteGraphicsDevice to PixelPaletteGraphicsAdapter
Inheritance: IPixelGraphicsDevice
显示文件 Open project: tgiphil/MOSA-Project

Protected Properties

Property Type Description
colorPalette Mosa.DeviceSystem.ColorPalette
pixelPaletteGraphicsDevice IPixelPaletteGraphicsDevice

Public Methods

Method Description
Clear ( Color color ) : void

Clears the specified color.

PixelPaletteGraphicsAdapter ( IPixelPaletteGraphicsDevice pixelPaletteGraphicsDevice )

Initializes a new instance of the PixelPaletteGraphicsAdapter class.

ReadPixel ( ushort x, ushort y ) : Color

Reads the pixel.

WritePixel ( Color color, ushort x, ushort y ) : void

Writes the pixel.

Method Details

Clear() public method

Clears the specified color.
public Clear ( Color color ) : void
color Color The color.
return void

PixelPaletteGraphicsAdapter() public method

Initializes a new instance of the PixelPaletteGraphicsAdapter class.
public PixelPaletteGraphicsAdapter ( IPixelPaletteGraphicsDevice pixelPaletteGraphicsDevice )
pixelPaletteGraphicsDevice IPixelPaletteGraphicsDevice The pixel palette graphics device.

ReadPixel() public method

Reads the pixel.
public ReadPixel ( ushort x, ushort y ) : Color
x ushort The x.
y ushort The y.
return Color

WritePixel() public method

Writes the pixel.
public WritePixel ( Color color, ushort x, ushort y ) : void
color Color The color.
x ushort The x.
y ushort The y.
return void

Property Details

colorPalette protected_oe property

protected ColorPalette,Mosa.DeviceSystem colorPalette
return Mosa.DeviceSystem.ColorPalette

pixelPaletteGraphicsDevice protected_oe property

protected IPixelPaletteGraphicsDevice pixelPaletteGraphicsDevice
return IPixelPaletteGraphicsDevice