Ahwoo.BRUTAL.Stb 2026.10.2

Prefix Reserved
dotnet add package Ahwoo.BRUTAL.Stb --version 2026.10.2
                    
NuGet\Install-Package Ahwoo.BRUTAL.Stb -Version 2026.10.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ahwoo.BRUTAL.Stb" Version="2026.10.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ahwoo.BRUTAL.Stb" Version="2026.10.2" />
                    
Directory.Packages.props
<PackageReference Include="Ahwoo.BRUTAL.Stb" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ahwoo.BRUTAL.Stb --version 2026.10.2
                    
#r "nuget: Ahwoo.BRUTAL.Stb, 2026.10.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ahwoo.BRUTAL.Stb@2026.10.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ahwoo.BRUTAL.Stb&version=2026.10.2
                    
Install as a Cake Addin
#tool nuget:?package=Ahwoo.BRUTAL.Stb&version=2026.10.2
                    
Install as a Cake Tool

Brutal Stb

Build

C# bindings for the stb single-header libraries, for use with the BRUTAL framework.

Brutal Stb wraps the stb single-header libraries — most notably stb_image — providing .NET access to fast, dependency-free loaders for common image formats including PNG, JPG, BMP, TGA, and HDR. The Stb.Texture package integrates loaded image data with the Brutal Texture abstraction layer for use with the rest of the BRUTAL rendering stack.

Platform Support

  • Windows (x64)
  • Linux (x64)
  • macOS (Apple Silicon)

NuGet Packages

For Users

Prerequisites

Installation

To install the package via NuGet, run the following command in your project directory:

dotnet add package Ahwoo.BRUTAL.Stb
dotnet add package RocketWerkz.Brutal.Stb.Texture

Usage

Load an image from disk and access its raw pixel data:

using var image = Stb.Load("texture.png");

Console.WriteLine($"{image.Width}x{image.Height}, {image.Channels} channels");

// Access pixels as a flat byte span
Span<byte> pixels = image.AsSpan();

Please refer to the BRUTAL Documentation for more detailed usage instructions and examples.

For Developers

Prerequisites

Compilation and Testing

To build the solution locally, run the following command in the repository root:

just build

To run the tests, run the following command in the repository root:

just test

Contributing

If you find a bug or have a feature request, please open an issue on GitHub. If you'd like to contribute code, feel free to fork the repository and submit a pull request.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Ahwoo.BRUTAL.Stb:

Package Downloads
Ahwoo.BRUTAL.Texture

General utilities and implementations for working with texture resources.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.10.2 1,782 10/15/2026

Rebuilds against Strings 2026.10.1 and the packages released on it. The previous 2026.10 release still pulled Brutal.T4 in through Strings 2026.10.0; this one no longer does.

No public API changes.

**Full Changelog:** [v2026.10.1...v2026.10.2](https://github.com/RocketWerkz/brutal.stb/compare/v2026.10.1...v2026.10.2)