PhotoCaptureFrame.UploadImageDataToTexture

Switch to Manual
public void UploadImageDataToTexture (Texture2D targetTexture);

Parameters

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

Description

此方法可将捕捉的图像数据复制到用户提供的纹理中,以便在 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.