Questions tagged [bmp]

The BMP File Format, also known as Bitmap Image File or Device Independent Bitmap (DIB) file format or simply a Bitmap, is a Raster graphics image file format used to store bitmap digital images, independently of the display device (such as a graphics adapter), especially on Microsoft Windows and OS/2 operating systems.

The BMP File Format, also known as Bitmap Image File or Device Independent Bitmap (DIB) file format or simply a Bitmap, is a Raster graphics image file format used to store bitmap digital images, independently of the display device (such as a graphics adapter), especially on Microsoft Windows and OS/2 operating systems.

More information at Wikipedia page of BMP

1091 questions
-2
votes
2 answers

Get the RGB value of each pixel from bmp file

So I have a bmp file, and I want to extract the details of rgb for every pixel of the image. I read somewhere that the following would do this for me int main(){ int image[100][3]; // first number here is 100 pixels in my image, 3 is for RGB …
Kraken
  • 23,393
  • 37
  • 102
  • 162
-3
votes
1 answer

how to bmp bytes transfrom to bmpfile

I make a barcode by zint. If it successes it will be creat a bmp file. But I want to its bmpdata. Now I get its bmpdata,I don't konw to show it by pyqt5.Becsuse it dont't have bmp header. I try to make a header. It is wrong. I get a wrong bmp…
-3
votes
2 answers

What is the best way of converting a large folder of bmp files to jpeg?

I have a large folder of BMP files and I want to write a script that will loop through all the files in the folder and convert all BMP files into jpeg. I want it to continuously run as it will be used on a production line where new BMP images will…
KieranF
  • 79
  • 6
-3
votes
2 answers

bmp file processing

can some help write a code in c to get 24 bit bmp pixel values into 2d array for processing of it thnx in advance
dilip
  • 1
-3
votes
1 answer

My code works on windows but fails on linux. Eror: premature end of file bmp

I have to work with some bmp files in order to change the colour of some pixels in a new colour; the withe pixels are ignored. My code seems to work on windows but once I try it on linux the new bmp file wont open because 'premature end of file…
-3
votes
3 answers

Editing bmp pixel by pixel [C++]

I want to make a program that will take an image and replace the Blue component of every pixel with 0. So I wrote this. I have one bmp image in the folder and a copy of it and as the input file i put in the name of the original and as the output…
Matt
  • 194
  • 1
  • 1
  • 14
-3
votes
1 answer

Assigning Variable to CreateFileA file name

I'm creating a .bmp file using this CreateFileA method HANDLE hFile = CreateFileA("Screenshot01.bmp", GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); At the moment is static and just keeps re-writing the old file. I want to call…
Ezrar
  • 23
  • 2
-3
votes
1 answer

Eliminating two zeros in a bmp array

I was trying to load BMP picture into memory and save the RGB array into a file(my own format 3d model with texture data).I made the programming to convert OBJ and its texture data into a m2d file. But when I loaded the file in actual in my m2d…
Fennekin
  • 216
  • 3
  • 12
-3
votes
1 answer

Trying to build a function to count unique pixels in image

..which is something useful. However.. i couldn't see anything related on the i-net ..which appears to be a bit problematic. Thats why.. i tried to build the function by myself: typedef unsigned char byte; typedef unsigned short word; typedef…
Lively
  • 111
  • 1
  • 1
  • 10
-4
votes
1 answer

convert 8 bit BMP image to base64 String

In C# I use the following code in order to read BMP image from hard disk then convert it into byte array then convert the array to base64 string. my question is how to do that in c++? The image is 8 bit depth here is my c# code System.Drawing.Image…
Mohammad Shaban
  • 176
  • 1
  • 16
1 2 3
72
73