Version: 2017.1

PhotoCaptureFrame.UploadImageDataToTexture

切换到手册
public void UploadImageDataToTexture (Texture2D targetTexture);

参数

targetTexture 目标纹理,捕捉的图像数据将被复制到其中。

描述

此方法可将捕捉的图像数据复制到用户提供的纹理中,以便在 Unity 中使用。

You may only use this method if you specified the BGRA32 format in your CameraParameters. Keep in mind that this operation will happen on the main thread and therefore be slow. The captured image will also appear flipped on the HoloLens. You can reorient the image by using a custom shader.