sevenPixels

2019年6月21日

截图

摘要: public static Texture2D CaptureScreen(Camera came, Rect r) { RenderTexture rt = new RenderTexture((int)r.width, (int)r.height, 0); came.targetTexture = rt; came.Render... 阅读全文

posted @ 2019-06-21 09:49 sevenPixels 阅读(113) 评论(0) 推荐(0)

读取指定路径图片

摘要: public static Sprite GetSpriteByIO(string _path) { FileStream fileStream = new FileStream(_path, FileMode.Open, FileAccess.Read); fileStream.Seek(0, SeekOrigin.Begin); b... 阅读全文

posted @ 2019-06-21 09:42 sevenPixels 阅读(220) 评论(0) 推荐(0)

导航