RoboHash.Local 1.0.4

dotnet add package RoboHash.Local --version 1.0.4
                    
NuGet\Install-Package RoboHash.Local -Version 1.0.4
                    
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="RoboHash.Local" Version="1.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RoboHash.Local" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="RoboHash.Local" />
                    
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 RoboHash.Local --version 1.0.4
                    
#r "nuget: RoboHash.Local, 1.0.4"
                    
#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 RoboHash.Local@1.0.4
                    
#: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=RoboHash.Local&version=1.0.4
                    
Install as a Cake Addin
#tool nuget:?package=RoboHash.Local&version=1.0.4
                    
Install as a Cake Tool

RoboHash.Local

RoboHash.Local is a local-only, .NET (WPF) adaptation of the RoboHash library by e1ven. This project allows you to generate unique avatars based on input strings without requiring any network access.

This package embeds the RoboHash set1 image assets directly into the assembly and deterministically composites them to produce a PNG avatar from any input string.

Install

You can install RoboHash.Local via NuGet using either of the following methods:

From NuGet (Package Manager):

Install-Package RoboHash.Local

Or via the .NET CLI:

dotnet add package RoboHash.Local

Usage

To generate a PNG avatar as a byte[] and write it to disk, you can use the following code snippet:

using System;
using System.IO;
using RoboHash.Local;

var generator = new RoboHashSet1Generator();

byte[] png = generator.GeneratePng("alice@example.com", width: 300, height: 300);

File.WriteAllBytes("avatar.png", png);

Notes

  • Target framework: net8.0-windows (uses WPF imaging types).
  • Assets: All assets are embedded; no network access is required.
  • Deterministic output: The output is deterministic for the same input, ensuring consistent avatar generation.

License / Attribution

RoboHash assets and the original idea come from the upstream project by e1ven. For more information, visit the RoboHash GitHub repository.

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows 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.
  • net8.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.4 107 2/5/2026

Local-only dotnet adaptation of RoboHash. Only set1 assets included.