mirror of
https://github.com/opensim/opensim.git
synced 2026-05-30 14:17:12 +08:00
* 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.
13 lines
316 B
C#
13 lines
316 B
C#
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);
|
|
}
|
|
}
|