Hi everyone
Anyone knows how to convert .bin file to .bmp file? This is the first time I have ever heard aobut ".bin file". Quite dont know where to start from???
Any hint or refference is highly appreciated.
.bin is an extension used for many different file formats by many different development companies. in short, it means "Binary". There are an infinite number of ways to write a binary file, so you'd really need to know more about the format of the file to proceed.
Hi wossname
Sorry for not explaining enough.
I attached a sample in which I have a .bin file and a .bmp file. This .bmp file may be assumed as derived .bin file. Take a look.
Thanx in advance
edit: keep forgetting that most people here use vb6
So this is a vb.net answer and therefore probably unhelpful, sorry...
It is straight pixel data, pixel format is 5 bits red, 6 bits green, 5 bits blue.
I tried just using the bitmap constructor:
new bitmap(stream)
but it didn't like it. So here is the long way.
It relies on the dimensions being hard coded in. The data itself does not contain the dimension, it appears only in the filename...
Hi jo0ls
Sorry for replying late. Quite busy recently so I cannot access to internet.
I will try your code and contact you later.
But anyway, thanx for your help.
Hi
I'm here with this topic again cause I have some clues about .bin file. And I hope everyone can help me this time.
Actually, this kind of .bin file (attached sample above) is RGB565 data for .bmp file(RGB888). .Bin file is 2byte(16bits) and .bmp file is 3byte(one byte for each RGB). How can I change from this 2byte to 3 bytes of .bmp ?
Please help me. Thanx.