Paint.NET Tex Plugin
Paint.NET plugin by RitoShark that opens and saves League of Legends .tex texture files.
A Paint.NET plugin by RitoShark that opens and saves League of Legends .tex texture files. It auto-detects compression and mipmaps on open, and gives you a normal save option or a save option with full settings.
What it does
- Opens
.texfiles in Paint.NET (DXT1, DXT5, BC5, BC7, and BGRA8). - Saves
.texfiles. Auto-detects compression and mipmaps when you save. - Adds a second save option with a menu for picking compression, dithering, error metric, and mipmap settings.
- Compresses BC7 fast with a native helper DLL. Falls back to slow software BC7 without it.
- Keeps the full alpha channel.
- Uses Floyd-Steinberg error diffusion dithering for clean results.
Before you start
You need:
- Paint.NET 5.1 or later (uses .NET 9). The latest 5.1.x build is recommended.
- Windows 10 or later.
- The latest release from the releases page: either the
TexFileTypeSetup.exeinstaller, or theTexFileType.dllandBc7Native.dllfiles for a manual install.
Install with the installer
- Close Paint.NET if it is open.
- Download
TexFileTypeSetup.exefrom the latest release. - Run it. The installer finds your Paint.NET
FileTypesfolder and copies both DLLs for you. - Open Paint.NET. The plugin loads on startup.
Install manually
Use this if you prefer not to run the installer, or you use portable Paint.NET.
- Close Paint.NET if it is open.
- Open the Paint.NET
FileTypesfolder. For most installs that isC:\Program Files\Paint.NET\FileTypes. For portable Paint.NET, use[Paint.NET folder]\FileTypes. - Copy both
TexFileType.dllandBc7Native.dllfrom the release into theFileTypesfolder. Keep them together. - Open Paint.NET. The plugin loads on startup.
Bc7Native.dll is what makes BC7 saving fast. Without it, BC7 still works but
saves very slowly. Always copy both DLLs.
Open a .tex file
You have two ways to open a .tex file:
- In Paint.NET, click File → Open and pick your
.texfile. - Or drag the
.texfile straight onto the Paint.NET window.
The texture appears on the canvas. Mipmaps and compression are read automatically.
Save a .tex file
You have two save modes. Use the first one for normal work. Use the second one when you need control over compression or mipmaps.
Save with auto settings
- Click File → Save As.
- In the file type dropdown, pick League of Legends TEX.
- Click Save.
The plugin keeps the compression and mipmap setup it detected when you opened the file.
Save with custom settings
- Click File → Save As.
- In the file type dropdown, pick League of Legends TEX (with options).
- Pick your settings in the menu:
- Compression: DXT1, DXT5, BC5, BC7, or BGRA8 (uncompressed). Use DXT5 or BC7 for textures with alpha. Use BC5 for normal maps.
- Dithering: Floyd-Steinberg, for smoother gradients.
- Error metric: Perceptual (recommended) or Uniform. This applies to DXT1 and DXT5 only.
- Mipmaps: generate a full mipmap chain.
- Click Save.
How to check it worked
- Re-open the file you saved. It loads without errors and looks the same.
- Or load it in your skin tool (Flint or LtMAO) and it shows up correctly.
Troubleshooting
Paint.NET crashes or the file doesn't load
Update Paint.NET to the latest 5.1.x build. The plugin needs 5.1 or later.
Plugin doesn't appear in Paint.NET
Close Paint.NET completely, then check these things:
- The folder
C:\Program Files\Paint.NET\FileTypesexists. - Both
TexFileType.dllandBc7Native.dllare inside that folder. - You are not running an older Paint.NET (below 5.1).
Open Paint.NET again. The plugin should now show up in the file type list.
BC7 saves are very slow
Bc7Native.dll is missing from your FileTypes folder. Copy it in next to
TexFileType.dll, then restart Paint.NET. The installer adds it for you.
"There was an error while saving the file."
Check your canvas size. Both width and height must be divisible by 4. League requires this for .tex files. Resize the image and save again.
Credits
- Plugin by RitoShark.
.texreading logic from LtMAO by Tarngaina.- BC1 and BC3 compression with Floyd-Steinberg dithering is based on Microsoft DirectXTex (MIT License).
GIMP TEX Plugin
Open and export League of Legends .tex texture files in GIMP. Works on GIMP 2.x and 3.x, Windows, Linux, and macOS.
Tex Thumbnail Provider
RitoShark's Windows shell extension shows .tex files as image thumbnails in File Explorer. Per-user install, no admin. See what is inside a texture at a glance.
