Why are there extra bits in the BMP file I generated from MATLAB 7.8 (R2009a)?
Mostra commenti meno recenti
When I generate a bitmap file from MS Paint in Windows XP, SP3, I do the following:
- Go to Image->Attributes and set width and height both to 3 pixels.
- Use View->Zoom->Custom to set magnification to 800%. Select mid-gray from palette and use pencil tool to individually set the pixels.
- Use the SAVE command to save the image as a 24-Bit Bitmap.
However, when I try to create the same file in MATLAB using the following commands, the file is much larger. There are many bytes of information prepended to my data.
a = [128 128 128; 128 128 128; 128 128 128];
imwrite(a, 'im.bmp', 'bmp')The files are different sizes.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Color and Styling in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!