PixelStream.v2
1.4.0
dotnet add package PixelStream.v2 --version 1.4.0
NuGet\Install-Package PixelStream.v2 -Version 1.4.0
<PackageReference Include="PixelStream.v2" Version="1.4.0" />
<PackageVersion Include="PixelStream.v2" Version="1.4.0" />
<PackageReference Include="PixelStream.v2" />
paket add PixelStream.v2 --version 1.4.0
#r "nuget: PixelStream.v2, 1.4.0"
#:package PixelStream.v2@1.4.0
#addin nuget:?package=PixelStream.v2&version=1.4.0
#tool nuget:?package=PixelStream.v2&version=1.4.0
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 | Versions 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. |
-
.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 |