cropMode( )

cropMode(): CameraTexture.CropMode;

Returns

The region of the camera frames that this texture displays represented by Z.CameraTexture.CropMode

With cropMode set to "camera_full", the texture will map full UV coordinates (0, 0) to (1, 1) to the full camera frame as received from the camera sensor. Ordinarily this frame will have a 4:3 aspect ratio but this should not be relied upon.

With a value of "screen_full" the texture will map full UV coordinates to the rectangle of the camera frame that is displayed on the device screen.

With a value of "screen_square" the texture will map full UV coordinates to the square central region of the camera frame that is displayed on the device screen.

Default value: Z.CameraTexture.CropMode.camera_full

zapcode branded_zapcode i