ImageView
Draws the image texture.
Last updated
Draws the image texture.
Last updated
Inherits class.
ImageView()
Creates a new ImageView object.
Texture
Read-Only. The image texture.
Width
int
Read-Only. The texture width.
Height
int
Read-Only. The texture height.
FlipVertically
bool
Flips the texture vertically.
FlipHorizontally
bool
Flips the texture horizontally.
void
Draws the texture for the specified Texture2D.
Load(StreamSource)
void
Draws the texture for the specified stream source.
void
Draws the texture for the specified color array, width, height and rotation.
Load(byte[], int, int, int)
void
Draws the texture for the specified byte array, width, height and rotation.
Calculates the position in the local space of the image for the specified original 2D position of a point.
The example shows how to draw the texture with the ImageView
class.
Alternatively, you can provide the color array of the texture.
The FingerJoint
class returns the joint's 2D position in pixels relative to the camera's dimensions. To represent this position on an ImageView
texture, which may vary in size, the GetPosition
method scales the joint's coordinates to match the texture's current width and height.
Load()
Load([], int, int, int)
GetPosition()
First, add a field to get frames from a live feed and an ImageView
field to draw the texture for Unity to serialize.
The easiest way to draw the image texture is by providing directly a object.