How to convert an image file to .BIN
Hi all
How would I go about writing a piece of code in C++ that converts a simple image file into a .BIN binary file. I have already written the code to load a picture file now all I need is some ideas about how to write the conversion algorithm. Are there any tutorials on the internet somewhere?
Thanks,
Steve-B
the question is: what is BIN ? is it a format you have invented? or is it some raw format or one you can find here ?
if you know the format and how it stores the image, all you have todo is to convert it [totally]...
T2k
if you know the format and how it stores the image, all you have todo is to convert it [totally]...
T2k
As T2k said, just read up on the file format ( RAW is stupidly simple ), and convert it! ;)
ok raw then (you know .bin can also stand for anything...), with a quicksearch on wotsit.org (the link on my previous post) for raw you can find this in the (unofficial) description for the raw format: "Basically, It's a raw format. There is no predefined format, ...". i also remember that falcon4.0 used some sort of raw format, they stored the image line by line with each pixel as 24bit (rgb) and that was it. to load the image in photoshop you had to specify how it was stored...
You see? there is nothing to convert, just dump the imagedata to a file.
T2k
You see? there is nothing to convert, just dump the imagedata to a file.
T2k
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement