Hazdryx.FastBitmap 1.3.2

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

// Install Hazdryx.FastBitmap as a Cake Tool
#tool nuget:?package=Hazdryx.FastBitmap&version=1.3.2

FastBitmap

A .NET Standard library which wraps the System.Drawing.Bitmap class for improved pixel read/write performance.

nuget build

Benchmarks

The benchmark graph below shows just how much faster FastBitmap is. When using the fastest mode it can see speed increases up to 20,000% on a single core. alternate text is missing from this package README image These benchmarks were taken on 9/5/2020 using a Ryzen 9 3950X 16C/32T CPU

Example

// Loads image from file.
using (FastBitmap bmp = FastBitmap.FromFile("image.png"))
{
	// Gets the color of pixel 0, 0 and sets it to pixel 1, 1.
	Color c = bmp.Get(0, 0);
	bmp.Set(1, 1, c);

	// Gets the color of pixel at index 1 and sets it to index 2.
	// Using indices is faster than coordinates.
	c = bmp.Get(1);
	bmp.Set(2, c);

	// Grabbing color from index 3 and setting it to index 4.
	// Using int (ARGB32) for color is much faster than the other methods.
	int color32 = bmp.GetI(3);
	bmp.SetI(4, color32);

	// Saves image to a file.
	bmp.Save("image0.png", ImageFormat.Png);
}

Contribute

Want to help move this project forward? Consider contributing to the project. There are many different ways you can help out, even if you don't want to submit code changes.

Use In Your Projects

The easiest way to contribute is to have this repo as a dependency in your projects. This contribution gives the project more recognition and likely to be seen by other developers, thereby growing the community.

Submit Pull Requests

If you would like to make changes to the codebase or documentation, you can submit a pull request. Make sure to check out the CONTRIBUTE.md for pull request requirements.

If you don't want to submit a pull request but still want to support my work further, consider sending me a donation. Donations help me spend more time on open-source projects so that they can be of the highest quality possible. You can send donations using the link(s) below.

buymeacoffee.com

Known Issues

#4 On some Linux distros, performing GDI+ (System.Drawing.Graphics) operations result in a desync from the BaseBitmap and FastBitmap.Data.

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

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Hazdryx.FastBitmap:

Package Downloads
Avyn

A .NET library for audio and video IO.

Hazdryx.FastBitmapExt

Extension methods for Hazdryx.Drawing.FastBitmap class.

Hazdryx.LightStitch

Dynamically adjust lighting brightness and color in post.

JX3BOX.JX3.Image

剑网 3 客户端图形图像解析处理

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.2 1,283 11/21/2021
1.3.1 347 10/10/2021
1.3.0 310 9/2/2021
1.2.1 358 5/7/2021
1.2.0 311 4/18/2021
1.1.1 416 9/18/2020
1.1.0 410 9/18/2020
1.0.1 567 9/17/2020
1.0.0 605 11/7/2019