PixelStream.v2 1.4.0

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

This class is ideal for low-level image manipulation, pixel-based graphics processing, or custom serialization of visual data. It abstracts a stream into a pixel grid, allowing intuitive access to pixel positions and values.

🧱 Core Components

##Pixel Operations

GetPixel(): Reads the pixel value at the current position.

SetPixel(ByteColor color): Writes a pixel value at the current position.

DrawBitmap(Bitmap bitmap): Writes a bitmap image into the stream starting from the current position.

🖼️ Example Usage

using (var fileStream = File.Open("File.dat", FileMode.OpenOrCreate)) { var pixelStream = new PixelStream(fileStream); pixelStream.Point = new BytePoint(0, 0); // Set the position var color = pixelStream.GetPixel(); // Read a pixel pixelStream.SetPixel(new ByteColor(128)); // Write a pixel // OR pixelStream.SetPixel(ByteColor.White); // Write a pixel }

using (var fileStream = File.Open("File.dat", FileMode.OpenOrCreate)) { var pixelStream = new PixelStream(fileStream); pixelStream.Point = new BytePoint(10, 10); // Set the position pixelStream.DrawBitmap(bitmap); // Write a bitmap }

Product Compatible and additional computed target framework versions.
.NET net7.0-windows7.0 is compatible.  net8.0-windows was computed.  net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
.NET Framework net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.0

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • net7.0-windows7.0

    • No dependencies.
  • 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.4.0 187 9/5/2025