swifty
February 28th, 2013, 08:55
Hi all,
I have been working on a little hobby to mod my car stereo so that I can re-skin the GUI.
I've gotten into the unit and have the skin file for the shell application (this unit runs on WinCE).
The skin file is one 18MB file that contains PNG/BMP and a bunch of various language infos etc.
I have written a program that works through the file and extracts all the different parts into their own files, I can successfully put all of these files back together and it still works on the stereo.
However - the images inside the file appear to be PNG (the naming from the strings present in the file suggest this), but the images themselves do not appear to have a standard PNG header.
There is an 80 byte header on each of the image files before the image data starts - the first bytes of this are not consistent for all files (eg. it doesn't start with 42 4D like BMP to specify file type)
The first few bytes specify the dimensions of the image, but I have no idea about the rest....
My goal is to edit this file, but maintain (or restore) the correct header info so that it still works in the application.
I've learnt a lot while trying to do this, but I've hit my limit of understanding and hope someone can help me figure out the header on these files.
I have put one of the images here in-case anyone wants to have a look at it - http://dl.dropbox.com/u/6618363/6.sample_out_1435.raw
I can successfully taken the 80 byte header off, and replaced it with a self made bitmap header - and the image displays OK in MS Paint (obviously transparency doesn't work), but then this doesn't really help me getting it back into the right format
I'd appreciate anyones input (bear in mind this is the first time I've ever done something like this though!
)
Cheers!
I have been working on a little hobby to mod my car stereo so that I can re-skin the GUI.
I've gotten into the unit and have the skin file for the shell application (this unit runs on WinCE).
The skin file is one 18MB file that contains PNG/BMP and a bunch of various language infos etc.
I have written a program that works through the file and extracts all the different parts into their own files, I can successfully put all of these files back together and it still works on the stereo.
However - the images inside the file appear to be PNG (the naming from the strings present in the file suggest this), but the images themselves do not appear to have a standard PNG header.
There is an 80 byte header on each of the image files before the image data starts - the first bytes of this are not consistent for all files (eg. it doesn't start with 42 4D like BMP to specify file type)
The first few bytes specify the dimensions of the image, but I have no idea about the rest....
My goal is to edit this file, but maintain (or restore) the correct header info so that it still works in the application.
I've learnt a lot while trying to do this, but I've hit my limit of understanding and hope someone can help me figure out the header on these files.
I have put one of the images here in-case anyone wants to have a look at it - http://dl.dropbox.com/u/6618363/6.sample_out_1435.raw
I can successfully taken the 80 byte header off, and replaced it with a self made bitmap header - and the image displays OK in MS Paint (obviously transparency doesn't work), but then this doesn't really help me getting it back into the right format

I'd appreciate anyones input (bear in mind this is the first time I've ever done something like this though!

Cheers!