aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/OptionalModules/World/WorldView/WorldViewModule.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/World/WorldView/WorldViewModule.cs b/OpenSim/Region/OptionalModules/World/WorldView/WorldViewModule.cs
index a2e47c3..bcf4187 100644
--- a/OpenSim/Region/OptionalModules/World/WorldView/WorldViewModule.cs
+++ b/OpenSim/Region/OptionalModules/World/WorldView/WorldViewModule.cs
@@ -28,7 +28,9 @@
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using System.Drawing; 30using System.Drawing;
31using System.Drawing.Imaging;
31using System.Reflection; 32using System.Reflection;
33using System.IO;
32using log4net; 34using log4net;
33using Nini.Config; 35using Nini.Config;
34using OpenMetaverse; 36using OpenMetaverse;
@@ -109,7 +111,11 @@ namespace OpenSim.Region.OptionalModules.World.WorldView
109 Bitmap bmp = m_Generator.CreateViewImage(pos, rot, fov, width, 111 Bitmap bmp = m_Generator.CreateViewImage(pos, rot, fov, width,
110 height); 112 height);
111 113
112 return new Byte[0]; 114 MemoryStream str = new MemoryStream();
115
116 bmp.Save(str, ImageFormat.Jpeg);
117
118 return str.ToArray();
113 } 119 }
114 } 120 }
115} 121}