Decode and encode texture using ImageSharp
Contents
[
Hide
]
Using Aspose.3D for .NET, developers use external image encoder and decoders to load textures or save textures into different image formats.
Implement a texture codec using ImageSharp
Use the following class to define texture encoders and texture decoder:
Register it into Aspose.3D
Now let’s register it into Aspsoe.3D:
Aspose.ThreeD.Render.TextureCodec.RegisterCodec(new Aspose.ThreeD.ImageSharpCodec());
When this codec has been registered, all ImageSharp supported image formats can be used in TextureData.Save.