Decode and encode texture using System.Drawing
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 System.Drawing
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.GdiPlusCodec());
When this codec has been registered, all System.Drawing supported image formats can be used in TextureData.Save.