diff options
author | Adam Frisby | 2009-04-09 14:19:49 +0000 |
---|---|---|
committer | Adam Frisby | 2009-04-09 14:19:49 +0000 |
commit | c77e7fce9ebbdb0a7a5baee316fcf940bf641416 (patch) | |
tree | 5930b5f6c76983c1fe4ea44285ad6f163570b953 /OpenSim/Region/OptionalModules/Scripting/Minimodule/IGraphics.cs | |
parent | * Adds World.OnNewUser += delegate(IWorld sender, NewUserEventArgs e); (diff) | |
download | opensim-SC-c77e7fce9ebbdb0a7a5baee316fcf940bf641416.zip opensim-SC-c77e7fce9ebbdb0a7a5baee316fcf940bf641416.tar.gz opensim-SC-c77e7fce9ebbdb0a7a5baee316fcf940bf641416.tar.bz2 opensim-SC-c77e7fce9ebbdb0a7a5baee316fcf940bf641416.tar.xz |
* 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.
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/IGraphics.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/IGraphics.cs | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ | |||
1 | using System.Drawing; | ||
2 | using OpenMetaverse; | ||
3 | |||
4 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | ||
5 | { | ||
6 | public interface IGraphics | ||
7 | { | ||
8 | UUID SaveBitmap(Bitmap data); | ||
9 | UUID SaveBitmap(Bitmap data, bool lossless, bool temporary); | ||
10 | Bitmap LoadBitmap(UUID assetID); | ||
11 | } | ||
12 | } | ||