1,107 questions
0
votes
2
answers
195
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:
...
1
vote
2
answers
115
views
Incorrect format problem when converting a BMP image file from Base-64 to binary
I am trying to convert the Base-64 data contained in the "data" returned by toDataURL of a fabric.Canvas into a file with its corresponding extension (BMP). The result is a "The file is ...
1
vote
1
answer
117
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
...
-1
votes
1
answer
148
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 ...
0
votes
1
answer
82
views
self-written BMP files with RLE8 compression not recognized by readers like Preview
I am trying to write BMP image files using RLE8 compression. Most files I read/write are recognized by standard readers, but some fail. Images with large blank areas are not recognized unless they are ...
1
vote
1
answer
48
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 ...
-1
votes
1
answer
602
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 ...
1
vote
1
answer
408
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;...
1
vote
0
answers
95
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
...
1
vote
0
answers
61
views
My function for read_BMP_header don`t work on valid width ana height check
Here is text of check: "Given the valid BMP stream When the function is invoked Then the image width must be valid And the image height must be valid"
Here is file bmp.h
#ifndef _BMP_H
#...
1
vote
1
answer
86
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"
/**
* ...
0
votes
1
answer
179
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 ...
0
votes
0
answers
84
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 ...
0
votes
0
answers
136
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:
....
1
vote
1
answer
112
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 ...