Image

class Fingo::Image

Image captured by Fingo device.

Public Functions

Image()

Create an empty image.

Image(ImageType imageType, byte [] imageByte, int width, int height, int bytesPerPixel)

Create an image by image type, image byte, image width, image height, image bytes per pixel.

Parameters
  • imageType: The image type of the image.
  • imageByte: The image byte data of the image.
  • width: The width of the image canvas.
  • height: The height of the image canvas.
  • bytesPerPixel: The bytes per pixel of the image.

void UpdateImageData(byte [] imageByte, int width, int height, int bytesPerPixel)

Update the image by image byte, image width, image height, image bytes per pixel.

Parameters
  • imageByte: The image byte data of the image.
  • width: The width of the image canvas.
  • height: The height of the image canvas.
  • bytesPerPixel: The bytes per pixel of the image.

Texture2D GetTexture()

Get texture of the image.

Return
Texture of the image.

void SetCameraInfo(FingoDevice.CameraInfo cameraInfo)

Set image the Fingo device information to update canvas position and scale.

Parameters
  • cameraInfo: The Fingo device information.

void SetDistance(float distance)

Set the distance of the canvas showing the image to the camera.

Parameters
  • distance: The distance of the canvas showing the image to the camera.

Property

property Fingo::Image::imageType

Image type: Left Infrared camera, Right Infrared camera, Left color camera, Right color camera.

property Fingo::Image::position

The position of the image canvas.

property Fingo::Image::scale

The scale of the image canvas.

enum Fingo::ImageType

The type of image.

Values:

IRLeft = 0

Infrared left image.

IRRight

Infrared right image.

RGBLeft

Color left image.

RGBRight

Color right image.