Questions tagged [bitmap]
Data structure for encoding pictures as a set of bits, in which each image pixel is mapped to a bit or a group of bit. Also used for encoding other complex data where each elementary information is mapped to bits, in a similar fashion. For platform specific bitmap API, prefer more specific tags (e.g. android-bitmap or nsbitmapimagerep).
bitmap
15,720
questions
0
votes
1
answer
37
views
Transforming CameraImage to bitmap in Flutter
We are currently capturing camera images in Flutter as CameraImages in the YUV_420_888 format. Our goal is to convert these images into a format that can be used with BitmapFactory in Kotlin to ...
0
votes
1
answer
73
views
Bitmap info regularly returns series of same wrong values before returning correct pixel colors
An update:
It turns out that this problem is actually a lot more of a problem than I thought. I wrote a little extra to the main() so that the screenCap() function there runs multiple times using a ...
-1
votes
0
answers
32
views
How to convert OpenCV Threshold into a one bit per pixel bitmap in Android?
I am trying to convert the photo I take into one bit per pixel Bitmap in Android (Kotlin).
Imgproc.threshold(tmp,tmp, bwThreshold.toDouble(),255.0,Imgproc.THRESH_BINARY)
Utils.matToBitmap(tmp,...
0
votes
0
answers
21
views
FIT bitmap in a canvas
I'm creating a background for a canvas and I can't get the image to fit the screen, it only shows me a central part of the image. I have tried createScaledBitmap calling the display metrics without ...
1
vote
1
answer
36
views
Convert a C# Bitmap to a native C++ Bitmap under GDI+
I created a Bitmap like following in C# (for example):
Image image = Image.FromFile("xxx.png");
Bitmap bitmap = new(image.Width, image.Height, PixelFormat.Format32bppArgb);
Graphics graphics ...
0
votes
0
answers
15
views
Android ColorMatrix Alpha Threshold and Mask
I am trying to write some code that modifies the alpha value in every pixel in a bitmap such that if the pixels alpha is < threshold the alpha will be set to 0f. I am starting by creating a bitmap ...
-1
votes
0
answers
34
views
How to Print HTML as A4 Format Without Rendering in Browser Using Solid.js?
I need to print a document created using HTML, but it should not be rendered on the screen. When a print button is clicked, the HTML should be printed directly without any preview.
Requirements:
No ...
0
votes
1
answer
83
views
How do I best scale png to 1 bit BMP (pyvips or PIL)
For a project I need to convert a PDF to strips of (large) BMP images, in 1 bit.
Quality is not the major issue here, but conversion speed is.
The input is a PDF document, the output is a series of ...
1
vote
1
answer
35
views
why does my code shows the starting screen and losing screen together even if i dont call the losing screen at any point
i want to make a start screen for my game and an end screen. when i start it shows my start screen for a second and than immidiately changes to the lose screen, the button are still working to start ...
-2
votes
1
answer
64
views
How to Screen record a particular ViewGroup (Relative Layout), which can contain a video views,surface views, textviews, etc
I am making a view recorder class.
Which can record a video(.mp4) of any view or view group(relative layout), and also record everything that is present inside this view group.
I have looked into ...
2
votes
1
answer
115
views
Find nth bit index efficiently
Given a bit mask, I'd like to find the index of the nth 1 bit. For example with mask 00001001 and number 1 would return index 3. Same mask with number 0 would return 0. I need to do this as ...
0
votes
1
answer
28
views
Bitmatrix read as vertical is wrong | Javascript
I want to make a website to upload images, resize them to 32x128, convert them to hex bitmatrix with an Filter like dithering or Threshold. For testing I use image2cpp by javl. Reading my bitmatrix as ...
0
votes
0
answers
53
views
Actionscript 3 : Draw movieclip as bitmap after scaling movieclip containing vectors?
Trying to draw a scaled movieclip containing vectors as a bitmap after the movieclip has been scaled, and struggling to get a sharp, clear bitmap.
Basically, have a movieclip and want to attach it to ...
0
votes
1
answer
81
views
Creating a Bitmap with raw pixel data array in C#
My code works for some images but not others.
Image that works:
Image that doesn't work (same image but smaller):
I first load the image and create an array of raw pixel data that for instance only ...
0
votes
1
answer
95
views
BitBlt and Direct3D for Screenshots C#
I'm working on a program to capture screenshots of windows from a window handle. I start by taking the screen shot using BitBlt, and if that fails when the window is using accelerated graphics, I ...