From c77e7fce9ebbdb0a7a5baee316fcf940bf641416 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Thu, 9 Apr 2009 14:19:49 +0000 Subject: * Implements IGraphics interface for MRM Scripting. * This allows you to utilize System.Drawing tools on textures within the region. * Example: use System.Drawing.Bitmap to make your texture, then use Host.Graphics.SaveBitmap to make an asset from it in JPEG2K. You can edit (but not overwrite) existing textures using Host.Graphics.LoadBitmap. --- .../Region/OptionalModules/Scripting/Minimodule/IGraphics.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 OpenSim/Region/OptionalModules/Scripting/Minimodule/IGraphics.cs (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/IGraphics.cs') diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/IGraphics.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/IGraphics.cs new file mode 100644 index 0000000..f4bc12e --- /dev/null +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/IGraphics.cs @@ -0,0 +1,12 @@ +using System.Drawing; +using OpenMetaverse; + +namespace OpenSim.Region.OptionalModules.Scripting.Minimodule +{ + public interface IGraphics + { + UUID SaveBitmap(Bitmap data); + UUID SaveBitmap(Bitmap data, bool lossless, bool temporary); + Bitmap LoadBitmap(UUID assetID); + } +} -- cgit v1.1