Start a new topic
Solved

Unexpected size of file

Create an empty project. Compiles it:


Global Memory:0
Page:page0 Memory Occupied:0+5=5
Compile Successful! 0 Errors, 0 Warnings,File Size:75449

 

I added to the project BMP file that has a size of 108262 bytes.

RAW image size 231*462*8bit= 106722 bytes

Compiles the project.

 

Global Memory:0
Page:page0 Memory Occupied:0+5=5
Compile Successful! 0 Errors, 0 Warnings,File Size:292560

 Why image taken 217,111 bytes (twice size)?


Hi Yaroslav,


This is not a bug, but rather the correct size.  I think there is a simple error here.

If color size was 8-bit you would have 256 color choices.

Your BMP file is internally stored in 16-bit for 65536 colors.

Then there are some more bytes added for the definition, etc,



Yes, exactly! Thank you!

Login or Signup to post a comment