mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
* 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:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user