| 
					
				 | 
			
			
				@@ -11,6 +11,7 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public class PhotographSaveView : BaseView 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private UI_PhotographSaveUI _ui; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private byte[] bytes; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         protected override void OnInit() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -29,6 +30,7 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             base.OnShown(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             Texture2D tex = this.viewData as Texture2D; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            byte[] bytes = tex.EncodeToJPG();//将纹理数据,转化成一个jpg图片 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_imgRes.texture = new NTexture(tex); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             float width = _ui.m_imgBorder.width; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             float height = width * tex.height / tex.width; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -54,8 +56,8 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void OnClickBtnSave() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            Texture2D tex = this.viewData as Texture2D; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            byte[] bytes = tex.EncodeToJPG();//将纹理数据,转化成一个jpg图片 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // Texture2D tex = this.viewData as Texture2D; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // byte[] bytes = tex.EncodeToJPG();//将纹理数据,转化成一个jpg图片 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             string fileName = "wsj" + TimeHelper.ServerNowSecs + ".jpg"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             PhotographDataManager.Instance.SavePicturoToLocal(bytes, fileName); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -69,8 +71,8 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            Texture2D tex = this.viewData as Texture2D; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            byte[] bytes = tex.EncodeToJPG();//将纹理数据,转化成一个jpg图片 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // Texture2D tex = this.viewData as Texture2D; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // byte[] bytes = tex.EncodeToJPG();//将纹理数据,转化成一个jpg图片 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             string[] rsp = await PoemPhotoSProxy.ReqTempPictureUrl((int)PictureType.jpg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (rsp == null) return; 
			 |