Unity3d 使用unity将exif信息保存到texture2d
我想将exif信息保存到使用webcamtexture拍摄的照片中并保存它们 但我不知道如何保存EXIF信息。 我想保存一个带有GPS位置信息集的JPG文件 我怎么做Unity3d 使用unity将exif信息保存到texture2d,unity3d,exif,Unity3d,Exif,我想将exif信息保存到使用webcamtexture拍摄的照片中并保存它们 但我不知道如何保存EXIF信息。 我想保存一个带有GPS位置信息集的JPG文件 我怎么做 var tex = new Texture2D(rt.width, rt.height, TextureFormat.ARGB32, false, false); RenderTexture.active = photoRenderTexture; tex.ReadPixels(new Rect(0, 0, rt.width,
var tex = new Texture2D(rt.width, rt.height, TextureFormat.ARGB32, false, false);
RenderTexture.active = photoRenderTexture;
tex.ReadPixels(new Rect(0, 0, rt.width, rt.height), 0, 0);
tex.Apply();
RenderTexture.active = null;
photoCamera.targetTexture = null;
byte[] bytes = tex.EncodeToPNG();
Object.Destroy(tex);
string path = Application.temporaryCachePath + "/pic.png";
File.WriteAllBytes(path, bytes);
相关的: