bmp Questions

13

Solved

In my algorithm, I need to create an information output. I need to write a boolean matrix into a bmp file. It must be a monocromic image, where pixels are white if the matrix on such element is tru...
Hawserlaid asked 16/4, 2010 at 16:11

4

Solved

I have an image with a PNG extension. I suspect it's not really a PNG though (I think it might be a GIF). How can I confirm an image's encoding? NB: A solution for Windows would be preferable
Summerwood asked 24/2, 2017 at 12:9

2

Solved

The documentation for CPACK_PACKAGE_ICON is very limited on cmake wiki page. The following is not working for me (as per): set(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/images/MyIcon.bmp...
Sanjiv asked 27/2, 2015 at 15:20

2

Solved

I am using the following code: f = fopen( _stringhelper.STR("%s.bmp", filename), "wb" ); if( !f ) { _core.Error( ERC_ASSET, "ncImageLoader::CreateImage - Couldn't create %s image.\n", filename );...
Amphigory asked 1/10, 2014 at 15:30

5

I'm trying to save an image in bmp format, but it doesn't create any file. If I use "png" instead, everything works fine. Any ideas? //This works fine: ImageIO.write(bi, "png", new File("D:\\MyIma...
Tokenism asked 23/9, 2013 at 10:25

2

Solved

I need to read the header of a bmp file with python. I tried like this but it obviously returns just a bunch of non intelligible bytes: f = open(input_filename,"rb") data = bytearray(f.read()) f.c...
Fineable asked 29/10, 2017 at 18:37

5

Solved

I've been searching all around for a simple solution to add sprites to my OpenGl GLUT simple moon lander game in c++ and it appears I must use bmp's since they're easiest to load and use them as te...
Extremity asked 20/9, 2012 at 17:53

3

Solved

I tried to convert a 32-bit Bitmap to 32-bit PNG using PIL. from PIL import Image im = Image.open('example.bmp') print im.mode # it prints 'RGB', but expected was 'RGBA' im.save('output.png', form...
Trustworthy asked 4/5, 2012 at 17:39

5

First of all, this is not a duplicate of the very common question of making an EXE from Java classes. I do not need to do that. To solve NetBeans RFE #64612 without manual steps I need a Java (6+)...
Giraffe asked 28/12, 2011 at 17:40

4

Solved

I have a Bitmap in memory and I need to save it in a bmp file (using the bmp file format). Is there any way to do it on Android ? (I read a lot of post suggesting to use the png format - which i...
Toed asked 7/4, 2014 at 10:11

1

Solved

UPDATE: When taking an iOS-created .bmp and using "Save As..." in Photoshop with "Flip row order" unchecked, this .bmp will then work on the Adafruit PyPortal (thanks John Park for this lead). I've...
Beaker asked 28/7, 2019 at 13:33

1

Solved

I came across this syntax for reading a BMP file in C++ #include <fstream> int main() { std::ifstream in('filename.bmp', std::ifstream::binary); in.seekg(0, in.end); size = in.tellg(); ...
Implosion asked 4/12, 2019 at 23:57

1

Solved

I am syncing BMP images between my iOS app (Swift 3) and an app (on MS Windows) that supports only BMP format. BMP images created on the MS Windows app are downloaded as base64 strings, saved as D...
Tatter asked 26/1, 2017 at 8:59

6

Solved

First of all, my question is different to How do I convert image to 2-bit per pixel? and unfortunately its solution does not work in my case... I need to convert images to 2-bit per pixel grayscal...
Scooter asked 4/3, 2016 at 14:1

2

Solved

I noticed that Launch4j's GUI seems to prefer a bmp file, so I used Gimp to convert my jpg file into that format, but I kept getting the error when trying to run the executable generated by Launch4...
Dutiable asked 14/2, 2012 at 17:58

4

I need to create a black and white BMP file with pure Python. I read an article on wikipedia, BMP file format, but I am not good at low level programming and want to fill this gap in my knowledge....
Stacy asked 4/1, 2012 at 15:35

1

Solved

I'm working on a program to resize a BMP file and store it in a new file. I noticed that some BMPs are stored totally upside-down while others are just stored upright. So I made two solutions to ha...
Ammonite asked 5/4, 2018 at 8:20

3

I'm trying to create (or, if I've somehow missed it in my research, find) an algorithm to encode/decode a bmp image into/from a QR code format. I've been using a guide (Thonky) to try to understand...
Glebe asked 15/10, 2012 at 23:33

6

Solved

How can I read the color value of 24bit BMP images at all the pixel [h*w] in C or C++ on Windows [better without any 3rd party library]. I got Dev-C++ A working code will be really appreciate...
Potence asked 15/2, 2012 at 15:22

1

Solved

I'm trying to create ASM code which will load and print an 256 color BMP file. I saw several codes that do this job, and they first load 0 to port 3c8h, and then load the palette to port 3c9h. What...
Kentigera asked 15/3, 2017 at 15:55

1

Solved

The question seems to be asked already, however I cannot find a relevant answer. I am loading a BMP image to memory in a UWP app, and I would like to rotate it by either 90, 180 or 270, but I just...
Chela asked 5/2, 2017 at 22:21

4

I've noticed in a backup of my FireFox bookmarks that the icon which is displayed to the left of each entry is held as a character stream in the A tags. For example: ICON="data:image/png;base64...
Placer asked 14/5, 2013 at 14:3

5

could somebody explain to me why in 24-bit rgb bitmap file I have to add a padding which size depends on width of image ? What for ? I mean I must add this code to my program (in C): if( read % ...
Spurtle asked 8/4, 2010 at 15:52

3

Solved

I have a problem. I´m generating a dynamic BMP image and trying to send this to a ZEBRA printer by ZPL commands. I need to convert my BMP to a GRF image. I think that my Hexadecimal extracted by t...
Cessionary asked 27/12, 2012 at 12:22

7

Solved

I'm writing code in C++ (on Windows) and I'm trying to extract the pixel values of a grayscale bmp. I don't care about keeping any of the metadata, and just want to store the pixel values in a char...
Divided asked 22/4, 2011 at 2:31

© 2022 - 2024 — McMap. All rights reserved.