* 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.
This commit is contained in:
Adam Frisby
2009-04-09 14:19:49 +00:00
parent 98eda9ebdb
commit c77e7fce9e
6 changed files with 75 additions and 6 deletions

View File

@@ -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);
}
}