Sergey Alikin · Stack Overflow

Score of 0

2 answers

242 views

Convert WMF file to C# bitmap without quality loss

I have an old software which generate WMF file using a bit complicated logic. I would like to use the result image (WMF file) in my C# application. I can convert it using the following code: ...

  • reputation score 309

Score of 1

1 answer

124 views

Why does binary read to a structure miss some bytes?

I am trying to read .bmp file header and show it to console output. I have two structures for .bmp head info: struct bmp_header{ uint16_t bmp_file_code{0x424D}; // BMP format code always 0x424D ...

  • reputation score 31

Score of -1

1 answer

162 views

Reading bitmap using SystemVerilog [closed]

VHDL is not good with binary files. I am considering using SystemVerilog for this and thinking how it could read bitmap file (image format .bmp) and process it. This shall be used to create a model to ...

  • reputation score 718

Score of -1

1 answer

718 views

How to convert a BMP image to RGB565 with ESP32 (Arduino)

I am currently working on a project involving an ESP32. The ESP32 retrieves a BMP image from a PHP page that converts a JPG to BMP. The ESP32 then needs to convert the BMP image into RGB565 data to be ...

  • reputation score 111

Score of 1

1 answer

468 views

How do I convert an image from PNG to BMP in Delphi VCL?

When I convert PNG picture to BMP picture via the routine below, then the colors are not the same in BMP as they are in the original PNG. procedure TForm1.Button4Click(Sender: TObject); var R: TRect;...

  • reputation score 67

Score of 1

0 answers

110 views

Reading data from BMP

I have a problem with reading pixels from bmp file. I don't know what's causing the problem. It might be something with padding at the end of row or fseek(). I share important parts of program. bmp.c ...

  • reputation score 39

Score of 1

1 answer

96 views

Read bmp header

here is my structure for header of BMP file #ifndef _BMP_H #define _BMP_H #include <stdint.h> #include <stdio.h> #include <stdbool.h> #define PADDING_CHAR "\0" /** * ...

  • reputation score 39

Score of 0

1 answer

210 views

How to crop a BMP image in half using C

I am writing a program that reads a bmp file, and then outputs the same BMP file but cropped in half. I'm doing this by simply dividing the bmp height in half, and that results in the top half of the ...

  • reputation score 9

Score of 0

0 answers

90 views

I don't understand what's wrong with the code

I've copied a code from an assembly book and used an image I've converted from PNG to BMP, and called the file "doeshe.bmp" however, I don't see the picture. (I saved my picture in my TASM ...

  • reputation score 1

Score of 0

0 answers

155 views

How do i create or edit basic, bmp image using risc-v assembler?

I am using rars, and i need to create empty bmp file, and edit it, but idk how. I have code(attached below) that create file, but when i try to open exit file, it says that file is corrupted) code: ....

  • reputation score 51

Score of 1

1 answer

120 views

Read and write BMP image (grayscale)

I have this code to read bmp image and then write it in new image. The problem that I faced is that the resulting image from write_bmp function give the same size of the original reading image but I ...

  • reputation score 11

Read the original on stackoverflow.com ↗