Add possibility to set for BitmapRenderer to output monochrome images at a color depth of 1 bit per pixel?
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- csharp
- Domain
- desktop-dev
Research direction
Start in Source/lib/renderer/BitmapRenderer.cs, where the output Bitmap is created with Format24bppRgb. Read how the bitmap is drawn, then decide how a 1-bit option would be exposed and whether a black and white palette must be set for Format1bppIndexed. Done when a renderer setting produces a Format1bppIndexed image and the default output is unchanged. The RawFormat bonus is a separate question and may need its own decision.
Written by the indexing model from the issue text.
Description
Currently BitmapRenderer output images having a PixelFormat of Format24bppRgb, but since barcodes are 99% of the times black & white (monochrome), it would be nice to set the format to Format1bppIndexed.
As a bonus, it would be nice to have the RawFormat property of Bitmap (Image) to a value different than ImageFormat.MemoryBmp since the method ImageFormat.FindEncoder can't find an encoder for MemoryBmp and I experience crashes when using POS for .NET and printing that barcode with the PosPrinter.PrintMemoryBarcode method.
Thanks!
- Dominant language
- C#
- Stars
- 3.1k
- Forks
- 704
- Avg merge
- 13d 17h
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from micjahn/ZXing.Net
-
crop() overrides document "0 <= top <= Height"; should be top < Height like left < WidthPossibly taken @hidingmyname claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 3/5 Half a day Newbie friendliness 22/100
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
Difficulty 4/5 3-5 days Newbie friendliness 12/100
All issues in micjahn/ZXing.Net
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug mac アプリ: コード アプリ: チャット 優先: 中 要トリアージ
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
yksr-melt/Meltype#1346 · 2 comments ·
Maintainers usually reply within 1 day
-
Collect corrected translations in the app, with no GitHub account and the least possible frictionOpenlocalization medium ui
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
hexide-io/HexIDE#2819 · 1 comment ·
Maintainers usually reply within 1 day