Class TexFileExtensions
Extensions to Lumina.Data.Files.TexFile
.
Assembly: Dalamud.dll
View Source
Declaration
public static class TexFileExtensions
Methods
GetRgbaImageData(TexFile)
Returns the image data formatted for Dalamud.Interface.ImGuiBackend.Renderers.IImGuiRenderer.CreateTexture2D(System.ReadOnlySpan%7bSystem.Byte%7d%2cDalamud.Interface.Textures.RawImageSpecification%2cSystem.Boolean%2cSystem.Boolean%2cSystem.Boolean%2cSystem.String)
,
using TerraFX.Interop.DirectX.DXGI_FORMAT.DXGI_FORMAT_R8G8B8A8_UNORM
.
<b>Consider using Lumina.Data.Files.TexFile.ImageData
with TerraFX.Interop.DirectX.DXGI_FORMAT.DXGI_FORMAT_B8G8R8A8_UNORM
.</b>
View Source
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. |