LibKTX 1.1.0
dotnet add package LibKTX --version 1.1.0
NuGet\Install-Package LibKTX -Version 1.1.0
<PackageReference Include="LibKTX" Version="1.1.0" />
<PackageVersion Include="LibKTX" Version="1.1.0" />
<PackageReference Include="LibKTX" />
paket add LibKTX --version 1.1.0
#r "nuget: LibKTX, 1.1.0"
#:package LibKTX@1.1.0
#addin nuget:?package=LibKTX&version=1.1.0
#tool nuget:?package=LibKTX&version=1.1.0
libktxsharp
Managed .NET 10/.NET 11 library for handling KTX File Format and KTX 2.0 file format.
How to use
- Get nuget, build .dll or include lib folder in your project
- Use following code examples
KTX
using KtxSharp;
byte[] ktxBytes = File.ReadAllBytes("myImage.ktx");
KtxStructure ktxStructure = null;
using (MemoryStream ms = new MemoryStream(ktxBytes))
{
ktxStructure = KtxLoader.LoadInput(ms);
}
Console.WriteLine(ktxStructure.header.pixelWidth);
KTX2 (standalone classes)
using KtxSharp;
byte[] ktx2Bytes = File.ReadAllBytes("myImage.ktx2");
Ktx2Structure ktx2Structure = null;
using (MemoryStream ms = new MemoryStream(ktx2Bytes))
{
ktx2Structure = Ktx2Loader.LoadInput(ms);
}
Console.WriteLine(ktx2Structure.ktx2Header.pixelWidth);
KTX2 (view over existing memory)
using KtxSharp;
byte[] ktx2Bytes = File.ReadAllBytes("myImage.ktx2");
Ktx2View ktx2View = new Ktx2View(ktx2Bytes);
Console.WriteLine(ktx2View.GetPixelWidth());
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- No dependencies.
-
net11.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on LibKTX:
| Package | Downloads |
|---|---|
|
MonoGame.Framework.Content.Pipeline
The Monogame Content Pipeline for Windows, Mac and Linux is used to compile raw content to xnb files. |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on LibKTX:
| Repository | Stars |
|---|---|
|
MonoGame/MonoGame
One framework for creating powerful cross-platform games.
|
|
|
ElgenTidwell/Chisel
|
## Version 1.1.0 (released 2026-11-17)
- Support .NET 11 (**FEATURE**)
- Drop .NET 8 (**BREAKING**)
- Support Zstandard decompression with .NET 11 (**FEATURE**)
## Version 1.0.0 (released 2026-05-08)
- Only support .NET 8 and .NET 10 (**FEATURE**)
- Drop support for .NET Standard (**BREAKING**)
- AOT compatible (**FEATURE**)
- Support KTX2 files (**FEATURE**)
## Version 0.9.2 (released 2024-07-30)
- First nuget release