Reputation: 464
Does anyone know how to read an image from .res file on disk, using a Delphi program?
Please note that i'm asking about reading an image from .res file on disk, and not about embedding resources to Delphi Application and read a resource file linked into an executable.
I mean :
not something like this :
{$R resfile.res}
blablabla.LoadFromResourceName(HInstance, 'IMAGE_NAME');
Thank you for advanced help.
Upvotes: 3
Views: 2927
Reputation: 5869
The open-source XN Resource Editor (written in Delphi) contains the necessary code to do this (as well as read/edit resources from executables, DLLs, OCX modules etc). You'll be able to pull what you need from that!
Upvotes: 5