PodNet.Boxify.Bmp
1.0.0
Prefix Reserved
dotnet add package PodNet.Boxify.Bmp --version 1.0.0
NuGet\Install-Package PodNet.Boxify.Bmp -Version 1.0.0
<PackageReference Include="PodNet.Boxify.Bmp" Version="1.0.0" />
paket add PodNet.Boxify.Bmp --version 1.0.0
#r "nuget: PodNet.Boxify.Bmp, 1.0.0"
// Install PodNet.Boxify.Bmp as a Cake Addin #addin nuget:?package=PodNet.Boxify.Bmp&version=1.0.0 // Install PodNet.Boxify.Bmp as a Cake Tool #tool nuget:?package=PodNet.Boxify.Bmp&version=1.0.0
PodNet.Boxify.Bmp
An extension for PodNet.Boxify
that wraps System.Drawing.Bitmap
for drawing box-drawings of images to text, files or terminals
Usage
This NuGet package contains a simple implementation of PodNet.Boxify
's IBoxBitmapSource
, that wraps a System.Drawing.Bitmap
from System.Drawing.Common
.
This is only used to provide the bridge between PodNet.Boxify
and a commonly used bitmap source, but you should consider implementing IBoxBitmapSource
yourself if you already have an image representation in your application to avoid taking a dependency on another image manipulation library.
var bmp = new Bitmap("mybmp.bmp");
using var source = new BitmapSource(bmp);
var boxArt = Renderer.Default.Render(source, PixelPalette.Halves);
There are no additional options for resizing, colorizing or applying effects. Do note that the renderer will render a character for each pixel into the resulting string, so any additional image manipulation you have to do yourself prior to rendering to the string (or do the manipulation, specifically the resizing and transformations in your custom wrapper).
For details on how to use PodNet.Boxify
, see the repo at https://github.com/podNET-Hungary/PodNet.Boxify/.
This package is also required by PodNet.Boxify.Svg
that allows converting SVG vector-based images to bitmaps so that they can in turn be converted to box-drawings.
Contributing and Support
This project is intended to be widely usable, but no warranties are provided. If you want to contact us, feel free to do so in the org's [Discussions], at our website at podnet.hu, or find us anywhere from LinkedIn to Meetup, YouTube or X.
Any kinds of contributions from issues to PRs and open discussions are welcome!
Don't forget to give us a ⭐ if you like this repo (it's free to give kudos!) or share it on socials!
Sponsorship
If you're using our work or like what you see, consider supporting us. Every bit counts. 🙏 See here for more info.
Product | Versions 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. |
-
.NETStandard 2.0
- PodNet.Boxify (>= 1.0.0)
- System.Drawing.Common (>= 5.0.3)
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.0 | 115 | 10/9/2024 |