Class ScreenComponent
Manage the state of the faces on the robot.
Implements
Inherited Members
Namespace: Anki.Vector
Assembly: Anki.Vector.dll
Syntax
public class ScreenComponent : Component, INotifyPropertyChanged
Fields
| Improve this Doc View SourceScreenHeight
The screen height in pixels
public const int ScreenHeight = 96
Field Type
Int32 |
ScreenWidth
The screen width in pixels
public const int ScreenWidth = 184
Field Type
Int32 |
TotalPixels
The total number of pixels in the display
public const int TotalPixels = 17664
Field Type
Int32 |
Methods
| Improve this Doc View SourceDisplayImageRgb24(Byte[], UInt32, Boolean)
Display an image on Vector's Screen (his "face").
public Task<StatusCode> DisplayImageRgb24(byte[] imageData, uint durationMs, bool interruptRunning = true)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | imageData | A byte array representing all of the pixels (24bit color in RGB format) |
UInt32 | durationMs | The number of milliseconds the image should remain on Vector's face. |
Boolean | interruptRunning | Set to true so any currently-streaming animation will be aborted in favor of this. |
Returns
Type | Description |
---|---|
Task<StatusCode> | A task that represents the asynchronous operation. The task result contains the result of the operation. |
DisplayImageRgb565(Byte[], UInt32, Boolean)
Display an image on Vector's Screen (his "face").
public Task<StatusCode> DisplayImageRgb565(byte[] imageData, uint durationMs, bool interruptRunning = true)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | imageData | A byte array representing all of the pixels (16bit color in rgb565 format) |
UInt32 | durationMs | The number of milliseconds the image should remain on Vector's face. |
Boolean | interruptRunning | Set to true so any currently-streaming animation will be aborted in favor of this. |
Returns
Type | Description |
---|---|
Task<StatusCode> | A task that represents the asynchronous operation. The task result contains the result of the operation. |
DisplayImageRgba32(Byte[], UInt32, Boolean)
Display an image on Vector's Screen (his "face").
public Task<StatusCode> DisplayImageRgba32(byte[] imageData, uint durationMs, bool interruptRunning = true)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | imageData | A byte array representing all of the pixels (32bit color in RGBA format) |
UInt32 | durationMs | The number of milliseconds the image should remain on Vector's face. |
Boolean | interruptRunning | Set to true so any currently-streaming animation will be aborted in favor of this. |
Returns
Type | Description |
---|---|
Task<StatusCode> | A task that represents the asynchronous operation. The task result contains the result of the operation. |
DisplaySolidColor(Color, UInt32, Boolean)
Set Vector's Screen (his "face"). to a solid color.
public Task<StatusCode> DisplaySolidColor(Color color, uint durationMs, bool interruptRunning = true)
Parameters
Type | Name | Description |
---|---|---|
Color | color | Desired color to set Vector's Screen. |
UInt32 | durationMs | The number of milliseconds the image should remain on Vector's face. |
Boolean | interruptRunning | Set to true so any currently-streaming animation will be aborted in favor of this. |
Returns
Type | Description |
---|---|
Task<StatusCode> | A task that represents the asynchronous operation. The task result contains the result of the operation. |