Convert the BMP to a JPEG image and return it. This should be testable.

viewer-2-initial-appearance
Melanie 2010-10-06 03:40:55 +01:00
parent abfcd168fc
commit 752b6a8764
1 changed files with 7 additions and 1 deletions

View File

@ -28,7 +28,9 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using System.Drawing.Imaging;
using System.Reflection; using System.Reflection;
using System.IO;
using log4net; using log4net;
using Nini.Config; using Nini.Config;
using OpenMetaverse; using OpenMetaverse;
@ -109,7 +111,11 @@ namespace OpenSim.Region.OptionalModules.World.WorldView
Bitmap bmp = m_Generator.CreateViewImage(pos, rot, fov, width, Bitmap bmp = m_Generator.CreateViewImage(pos, rot, fov, width,
height); height);
return new Byte[0]; MemoryStream str = new MemoryStream();
bmp.Save(str, ImageFormat.Jpeg);
return str.ToArray();
} }
} }
} }