.NET SDK Documentation

    Show / Hide Table of Contents

    Class ScreenComponent

    Manage the state of the faces on the robot.

    Inheritance
    Object
    RobotObject
    Component
    ScreenComponent
    Implements
    INotifyPropertyChanged
    Inherited Members
    RobotObject.PropertyChanged
    Namespace: Anki.Vector
    Assembly: Anki.Vector.dll
    Syntax
    public class ScreenComponent : Component, INotifyPropertyChanged

    Fields

    | Improve this Doc View Source

    ScreenHeight

    The screen height in pixels

    public const int ScreenHeight = 96
    Field Type
    Int32
    | Improve this Doc View Source

    ScreenWidth

    The screen width in pixels

    public const int ScreenWidth = 184
    Field Type
    Int32
    | Improve this Doc View Source

    TotalPixels

    The total number of pixels in the display

    public const int TotalPixels = 17664
    Field Type
    Int32

    Methods

    | Improve this Doc View Source

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

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    Implements

    System.ComponentModel.INotifyPropertyChanged
    • Improve this Doc
    • View Source
    Back to top Copyright (c) 2019 by Wayne Venables