mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Convert the BMP to a JPEG image and return it. This should be testable.
This commit is contained in:
@@ -28,7 +28,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Imaging;
|
||||
using System.Reflection;
|
||||
using System.IO;
|
||||
using log4net;
|
||||
using Nini.Config;
|
||||
using OpenMetaverse;
|
||||
@@ -109,7 +111,11 @@ namespace OpenSim.Region.OptionalModules.World.WorldView
|
||||
Bitmap bmp = m_Generator.CreateViewImage(pos, rot, fov, width,
|
||||
height);
|
||||
|
||||
return new Byte[0];
|
||||
MemoryStream str = new MemoryStream();
|
||||
|
||||
bmp.Save(str, ImageFormat.Jpeg);
|
||||
|
||||
return str.ToArray();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user