StbiSharp 1.2.1
dotnet add package StbiSharp --version 1.2.1
NuGet\Install-Package StbiSharp -Version 1.2.1
<PackageReference Include="StbiSharp" Version="1.2.1" />
paket add StbiSharp --version 1.2.1
#r "nuget: StbiSharp, 1.2.1"
// Install StbiSharp as a Cake Addin #addin nuget:?package=StbiSharp&version=1.2.1 // Install StbiSharp as a Cake Tool #tool nuget:?package=StbiSharp&version=1.2.1
StbiSharp
A C# wrapper around the single-header image-loading library stb_image.h as well as qoi.h. It supports JPEG, PNG, QOI, BMP, GIF, HDR, PIC, PNM, PSD, and TGA (for some formats only a subset of features; consult stb_image.h for details).
You can find the source code of this package on GitHub.
Usage
Grab StbiSharp from nuget, then load an image as follows:
public void doSomethingWithImage()
{
using (var stream = File.OpenRead("some-image.jpg"))
using (var memoryStream = new MemoryStream())
{
stream.CopyTo(memoryStream);
StbiImage image = Stbi.LoadFromMemory(memoryStream, 4);
// Use image.Width, image.Height,
// image.NumChannels, and image.Data.
}
}
If the encoded image is directly available in memory, no file stream needs to be used.
License
StbiSharp is available under the BSD 3-clause license. TL;DR you can do almost whatever you want as long as you include the original copyright and license notice in any copy of the software and the source code.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 is compatible. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 is compatible. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 2.0
- System.Memory (>= 4.5.3)
-
.NETCoreApp 3.0
- No dependencies.
-
.NETStandard 2.0
- System.Memory (>= 4.5.3)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on StbiSharp:
Package | Downloads |
---|---|
ppy.osu.Framework
A 2D application/game framework written with rhythm games in mind. |
|
DalaMock.Mock
Provides a way of mocking Dalamud plugins, allowing them to run outside of the game |
|
Speykious.osu.Framework
A fork of osu!framework without BASS, better tailored for applications. |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on StbiSharp:
Repository | Stars |
---|---|
ppy/osu-framework
A game framework written with osu! in mind.
|
|
vignetteapp/vignette
The open source VTuber software. ❤
|
Version | Downloads | Last updated |
---|---|---|
1.2.1 | 4,442 | 3/18/2022 |
1.2.0 | 501 | 3/16/2022 |
1.1.1 | 642 | 3/1/2022 |
1.1.0 | 752,052 | 1/31/2022 |
1.0.13 | 668,565 | 11/6/2020 |
1.0.12 | 61,726 | 6/24/2020 |
1.0.11 | 97,206 | 12/17/2019 |
1.0.10 | 8,516 | 11/29/2019 |
1.0.9 | 544 | 11/29/2019 |
1.0.8 | 2,923 | 11/21/2019 |
1.0.7 | 503 | 11/19/2019 |
1.0.6 | 494 | 11/19/2019 |
1.0.4 | 507 | 11/17/2019 |
1.0.3 | 520 | 11/17/2019 |
1.0.2 | 500 | 11/17/2019 |
1.0.1 | 546 | 11/17/2019 |
Automated release.