412 questions
0 votes
0 answers
94 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
276 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
0 answers
90 views
When copying pixel color values via Marshal.Copy, an image with spaces is obtained
enter image description here When trying to copy data from one Bitmap to another, for some reason the image looks torn. This is the code I copied from microsoft documentation. And it should work, but ...
0 votes
1 answer
52 views
Method that turns image to BW does not work
public float ToBlackAndWhite(BlackWhiteMode mode) { var data = _bmp.LockBits(new Rectangle(0, 0, Width, Height), ImageLockMode.ReadWrite, _bmp.PixelFormat); var IsWhite = mode ...
0 votes
0 answers
142 views
How to count the amount of white Pixels time efficiently in C#
I am trying to compare two bitmaps to one another. One is premade, and the other one consists of a small image of the main screen being taken and filtered for everything besides full white. I now need ...
0 votes
1 answer
245 views
How does bitmaps draw pixel on window?
So I followed a few tutorials on how to draw on window using windows.h library, the part of the tutorial that I don't really understand is the bitmap part. They used createbitmap() and StrechBit() ...
1 vote
1 answer
266 views
Why BitmapData Stride have alternating sign?
I have the following code var rect = new Rectangle(x, y, w, h); BitmapData data = bitmap.LockBits(rect, ImageLockMode.ReadOnly, bitmap.PixelFormat); BitmapSource cropppedImage; ...
1 vote
1 answer
382 views
Resizing a Bitmap manually
We are using a camera that acquires up to 60 frames per second, providing Bitmaps for us to use in our codebase. As our wpf-app requires, these bitmaps are scaled based on a scaling factor; That ...
0 votes
1 answer
275 views
Can not Read Bitmap data of a (1280 x 960) .bmp image In C
I'm trying to open a .bmp image file and to read bitmap data to a buffer. but I'm not getting the excepted output. I'm new to C language and please assist me on this case. this is my "main.c"...
2 votes
0 answers
192 views
Read BitmapData from multiple threads
I'm having multiple threads that need to READ the same bitmap. They all need to potentially read the entire bitmap. I want them to access the underlying bytes, so each thread invokes LockBits with ...
0 votes
0 answers
114 views
How to properly divide a task of editing bitmap for parallel processing for filter
I'm currently in the development phase of a photoconverter program and in the process of developing a blur filter. At the initial stages of prototyping this feature, i devised a algorithm in which I ...
0 votes
1 answer
563 views
Create a QImage from a BITMAPINFO and an uchar* data
I am trying to load an image that is given to me as a BITMAPINFO* and a uchar array. The documentation states that it is a standard Microsoft device independent bitmap (DIB) with 8-bit pixels and a ...
0 votes
1 answer
747 views
How to do Bitmap processing using BitmapData?
I've built a small test example where the goal is to change all pixels in my .png to white. I'm doing it using BitmapData, because as I understand it, the performance is better. If I can get it ...
0 votes
1 answer
885 views
Unnecessary black bar when convert a Bitmap to Byte Array
I wrote a easy program to convert a monochrome bitmap data to a byte array, and then reverse it (0->1, 1->0) in order to send it as a ZPL to a label printer. Bitmap bmp = (Bitmap)pictureBox1....
0 votes
0 answers
855 views
How to convert byte[] to bitmap
I want to share bitmap between server and client. I've tried a lot, but I've had problems with all the way the bottom part of the image missing. First way: Bitmap bmp = new Bitmap(800, 450); ...