Questions tagged [monochrome]

64 questions
2
votes
0 answers

Determine with Camera2 when a lens is monochrome in APIs < 29

For Android API >= 29 I use the next snipped to determine when a lens is monocrhome: public boolean isMono(@NonNull final CameraCharacteristics characteristics) { final Integer value =…
PerracoLabs
  • 16,449
  • 15
  • 74
  • 127
2
votes
1 answer

ffmpeg monochrome rawvideo

I am trying to generate a raw video stream with luma only (monochrome, YUV400) 8bit pixel data using the following command: ffmpeg -i input.mp4 -vcodec rawvideo -pix_fmt raw.yuv After that I want to h.264 encode the raw stream with the profiles…
user3482407
  • 319
  • 3
  • 18
2
votes
2 answers

How can I render a monochrome bitmap in color in WPF?

Back in Win32 days, if I had a monochromatic bitmap, which is for all intents and purposes just a bitmap mask, I could render that bitmap onto a DeviceContext. What would happen is every pixel where there was a '0' it rendered as transparent, and…
Mark A. Donohoe
  • 28,442
  • 25
  • 137
  • 286
2
votes
1 answer

Print monochrome image as separation color in a PDF

I am having some troubles while trying to insert images in a pdf while changing its colorspace. Right now I have a png monochrome image (8 bits, 1 bit depth) where the 1 is black and the 0 is transparent (something like a mask). I want to insert…
trunco
  • 103
  • 11
2
votes
2 answers

Make entire screen monochrome and other full screen effects

Does anyone know how to apply effects to the entire screen, in c# or any programming language. I'm mostly interested in making the screen monochrome (specifically green-white instead of black white). I know a cross-graphic card solution is possible…
Dyte
  • 259
  • 3
  • 13
2
votes
2 answers

Monochrome Bitmap

Should be an easy one. I'm working on Scala trying to handle long sequences of binary data. That is long lists of 0's and 1's. What is the 'best' way to store/access this kind of data. The important point here is memory optimisation, so I would like…
Skuge
  • 1,010
  • 2
  • 11
  • 28
2
votes
1 answer

Printing/saving QGraphicsScene to monochrome image very poor quality

I would like to print/save the QGraphicsScene in Mono format. I made the scene contain only a single color object (in one of the windows, it actually is black and white). OutputView::OutputView(QWidget *parent) : QGraphicsView(parent)…
Thalia
  • 13,637
  • 22
  • 96
  • 190
2
votes
1 answer

PHP: Create and save headerless 1 bit (b/w) BMP file

We need to create a 1 bit BMP file to send it to a printer. Apparently the file should be a headerless bmp file. I found that that could be just removing the first 45 bytes. I got something like this, but it aint working: $filename =…
user1494552
  • 163
  • 8
2
votes
1 answer

image data of bmp in C

How to convert a monochrome bmp image file (in my case 16*16 pixels) into binary format? This code reads the bitmap information. I have to store the pixel information into an array & it's not stored properly. I have shared the code #pragma…
user2967899
  • 75
  • 1
  • 2
  • 7
2
votes
2 answers

How do I load 8-bit binary image data into an OpenGL ES 2 texture on Android

I want to read monochrome image data from disk in a binary format (unsigned byte) and display it as an OpenGL ES 2 texture in Android. I am currently using Eclipse and the AVD emulator. I am able to read the data from disk using an InputStream, and…
Luke AP
  • 95
  • 2
  • 11
2
votes
2 answers

Javascript: detect monochrome display

I've been testing an HTML5 webapp on eReaders, and I got it mostly working, but the colors are all messed up (it's monochrome). My app uses lots of colors with an update every second. I need this to run on colored displays as well, so I need to…
beatgammit
  • 19,817
  • 19
  • 86
  • 129
1
vote
1 answer

How to add B&W images as JBIG2DECODE streams into a PDF via iText

I am working on a utility to replace images in a PDF with smaller, monochrome (2-color B&W) versions for the purpose of shrinking scanned PDFs. The program below (which is the whole thing) currently exports all images to large .png files to the in…
Mario Carneiro
  • 1,548
  • 1
  • 18
  • 32
1
vote
0 answers

How does the Monochromacy color space simulation work in Android?

I recently read about desaturation works in GIMP. Since I am a heavy smartphone grey-mode user, I wondered how the colour conversion works in Android. I did not expect it to be a naïve desaturation as overall it looks very pleasant; I was more…
Juraj Fiala
  • 170
  • 1
  • 12
1
vote
2 answers

monochrome black-and-white bitmap

I'm working on Android for converting a colored bitmap captured from the camera into a black-and-white monochromatic image (no grays!). I've got several methods for the gray scale conversion but I can't manage to get my image to a b&W format. Are…
Jed84
  • 171
  • 1
  • 2
  • 4
1
vote
1 answer

Merge large monochromatic (BW) images

I need to work with large monochromatic images. I basically need to add a banner (frame and formatted text) to a hi-res (like 30000x20000px) monochromatic images (A2+ plots at 400dpi). The default PixelFormat is Format1bppIndexed, which makes even…
Oak_3260548
  • 1,882
  • 3
  • 23
  • 41