This forum is read-only. Please post new topics in our Q&A forum.

Delphi .raw toolbar icons convert

General discussion about using Restorator.

Moderator: florian

Locked
paullll
New User
Posts: 3
Joined: Mon Jan 29, 2007 5:01 pm

Delphi .raw toolbar icons convert

Post by paullll » Mon Jan 29, 2007 5:09 pm

I have a few programs where the toolbars are extracted
as .raw image information. An example of this file is:

TfrmMain_fImagesBig_Bitmap.raw

How, if possible, can I convert this to any usable format
like .bmp, etc. to edit it, then convert back to the original
.raw format to use in the program?

User avatar
florian
Bome Software: Founder
Posts: 2435
Joined: Thu Apr 28, 2005 10:09 pm
Location: Munich, Germany
Contact:

Post by florian » Tue Jan 30, 2007 3:12 pm

hmm, strange -- when I extract Delphi forms with "image lists" (as used in toolbars), Restorator extracts .bmp files. I'll write you a personal email so that you can send me the resource for further investigation.

Florian

paullll
New User
Posts: 3
Joined: Mon Jan 29, 2007 5:01 pm

Post by paullll » Wed Jan 31, 2007 6:55 pm

It's on the way. :D

User avatar
florian
Bome Software: Founder
Posts: 2435
Joined: Thu Apr 28, 2005 10:09 pm
Location: Munich, Germany
Contact:

Post by florian » Thu Feb 01, 2007 3:31 pm

Hi Paul,

thanks for the res files. I was able to reproduce the problem. These resources are created with Delphi or C++ Builder. They use a Windows function, ImageList_Write is used. Unfortunately, the file format of such files is not specified, I could not find any information about it. Looking at it in a hex editor reveils a structure similar to .ico or .bmp files, but it is not fully clear what every field in the header means. Sorry for the disappointing reply.

It is possible to add support in Restorator by using Windows' functions to interprete this raw data, but this will require some modification to Restorator, so it will take some time to be implemented. I put it down on the feature request list.

If you happen to find a format specification of ImageLists (header starts with "IL"), let me know here.

And, possibly, there exists a program which edits image lists directly?

Regards,
Florian

paullll
New User
Posts: 3
Joined: Mon Jan 29, 2007 5:01 pm

Post by paullll » Sun Feb 04, 2007 7:05 pm

While searching for a way to convert the .raw
data, I found a program that with it,
I was able to directly edit the toolbar icons of
both these programs containing the .raw
toolbar bitmap data that I tried. I even changed
the 16 color icons in the first prog. to 24 bit
color ones. Both progs. run normally after editing,
with no crashing errors.

See PM mail message for the info.

Locked