Casasoft.CommodoreImages
1.0.2
dotnet add package Casasoft.CommodoreImages --version 1.0.2
NuGet\Install-Package Casasoft.CommodoreImages -Version 1.0.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="Casasoft.CommodoreImages" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Casasoft.CommodoreImages" Version="1.0.2" />
<PackageReference Include="Casasoft.CommodoreImages" />
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 Casasoft.CommodoreImages --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Casasoft.CommodoreImages, 1.0.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 Casasoft.CommodoreImages@1.0.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=Casasoft.CommodoreImages&version=1.0.2
#tool nuget:?package=Casasoft.CommodoreImages&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Casasoft Commodore Images
Copyright (c) 2025-2026 Roberto Ceccarelli
https://strawberryfield.altervista.org
Released under GNU AGPL 3.0
A library for converting images to Commodore 64 bitmap formats. Supports both multicolor (160x200, 4 colors per cell) and hires (320x200, 2 colors per cell) bitmap modes with Floyd-Steinberg dithering and brightness bias controls.
Features
- MulticolorConverter - Converts images to C64 multicolor bitmap format (160x200 pixels, 4 colors per 8x8 character cell)
- HiresConverter - Converts images to C64 standard (hires) bitmap format (320x200 pixels, 2 colors per 8x8 character cell)
- C64MulticolorData - Container for multicolor bitmap data (8KB bitmap, 1KB color RAM, 1KB screen RAM)
- C64HiresData - Container for hires bitmap data (8KB bitmap, 1KB screen RAM)
- C64Palette - C64 16-color palette with accurate RGB values and closest-color matching
Dependencies
- Magick.NET (ImageMagick) - Image processing
Usage
using ImageMagick;
using Casasoft.Commodore;
using Casasoft.Commodore.Images;
// Load an image and convert to multicolor format
using var image = new MagickImage("input.png");
var converter = new MulticolorConverter();
var result = converter.ConvertImage(image, useDithering: true, brightnessBias: 0.35);
// Access the resulting data
byte[] bitmapData = result.BitmapData; // 8KB
byte[] colorRam = result.ColorRam; // 1KB
byte[] screenRam = result.ScreenRam; // 1KB
byte bgColor = result.BackgroundColor; // Background color (VIC-II $D021)
License
This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). See the LICENSE file for details.
| Product | Versions 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.
-
net10.0
- Magick.NET-Q16-AnyCPU (>= 14.16.0)
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.2 | 121 | 8/1/2026 |