Class TexFileExtensions
Extensions to Lumina.Data.Files.TexFile.
Assembly: Dalamud.dll
Declaration
public static class TexFileExtensions
Methods
GetRgbaImageData(TexFile)
Returns the image data formatted for Dalamud.Interface.ImGuiBackend.Renderers.IImGuiRenderer.CreateTexture2D(System.ReadOnlySpan<System.Byte>,Dalamud.Interface.Textures.RawImageSpecification,System.Boolean,System.Boolean,System.Boolean,System.String),
using TerraFX.Interop.DirectX.DXGI_FORMAT.DXGI_FORMAT_R8G8B8A8_UNORM.
Consider using Lumina.Data.Files.TexFile.ImageData with TerraFX.Interop.DirectX.DXGI_FORMAT.DXGI_FORMAT_B8G8R8A8_UNORM.
Declaration
public static byte[] GetRgbaImageData(this TexFile texFile)
Returns
System.Byte[]: The formatted image data.
Parameters
| Type | Name | Description |
|---|---|---|
Lumina.Data.Files.TexFile | texFile | The TexFile to format. |