JeremyAnsel.BcnSharp 1.0.8

dotnet add package JeremyAnsel.BcnSharp --version 1.0.8                
NuGet\Install-Package JeremyAnsel.BcnSharp -Version 1.0.8                
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="JeremyAnsel.BcnSharp" Version="1.0.8" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JeremyAnsel.BcnSharp --version 1.0.8                
#r "nuget: JeremyAnsel.BcnSharp, 1.0.8"                
#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.
// Install JeremyAnsel.BcnSharp as a Cake Addin
#addin nuget:?package=JeremyAnsel.BcnSharp&version=1.0.8

// Install JeremyAnsel.BcnSharp as a Cake Tool
#tool nuget:?package=JeremyAnsel.BcnSharp&version=1.0.8                

JeremyAnsel.BcnSharp

Build status NuGet Version License

JeremyAnsel.BcnSharp is a .Net library to encode and decode BCn BC3 BC5 BC7 texture compression formats.

Description Value
License The MIT License (MIT)
Documentation http://jeremyansel.github.io/JeremyAnsel.BcnSharp
Source code https://github.com/JeremyAnsel/JeremyAnsel.BcnSharp
Nuget https://www.nuget.org/packages/JeremyAnsel.BcnSharp
Build https://ci.appveyor.com/project/JeremyAnsel/jeremyansel-bcnsharp/branch/main

The JeremyAnsel.BcnSharp library is based on the bc7enc_rdo library. See https://github.com/richgel999/bc7enc_rdo

Usage

The methods to encode and decode textures are in these static classes: Bc7Sharp, Bc5Sharp, Bc3Sharp.

The methods are:

int GetEncodedArrayLength(int width, int height)
byte[] CreateEncodedArray(int width, int height)
void Encode(IntPtr pBlock, IntPtr pPixelsRGBA, int width, int height)
void Encode(byte[] pBlock, byte[] pPixelsRGBA, int width, int height)
byte[] Encode(byte[] pPixelsRGBA, int width, int height)
int GetDecodedArrayLength(int width, int height)
byte[] CreateDecodedArray(int width, int height)
void Decode(IntPtr pBlock, IntPtr pPixelsRGBA, int width, int height)
void Decode(byte[] pBlock, byte[] pPixelsRGBA, int width, int height)
byte[] Decode(byte[] pBlock, int width, int height)

The length of encoded array is

((width + 3) / 4) * ((height + 3) / 4) * 16

The length of decoded array is

width * height * 4

The encode and decode methods can create a new output array or can be called with an existing output array.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 is compatible.  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 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on JeremyAnsel.BcnSharp:

Package Downloads
JeremyAnsel.Xwa.Dat

A .Net library to handle X-Wing Alliance's DAT files.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.8 135 9/22/2024
1.0.7 191 7/22/2024
1.0.6 320 4/11/2024
1.0.5 166 4/9/2024
1.0.4 107 4/9/2024
1.0.3 675 7/15/2023
1.0.2 251 7/15/2023
1.0.1 249 7/11/2023