diff options
-rw-r--r-- | OpenSim/Region/OptionalModules/World/WorldView/WorldViewModule.cs | 8 |
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 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Drawing; | 30 | using System.Drawing; |
31 | using System.Drawing.Imaging; | ||
31 | using System.Reflection; | 32 | using System.Reflection; |
33 | using System.IO; | ||
32 | using log4net; | 34 | using log4net; |
33 | using Nini.Config; | 35 | using Nini.Config; |
34 | using OpenMetaverse; | 36 | using 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 | } |