Link to home
Start Free TrialLog in
Avatar of MaconBacon
MaconBacon

asked on

Load png RCDATA from anyfile.Res into a TImage component

I've seen someone asking this before, but the accepted solution didn't asnwer the question....

It's not using Windows.LoadResource nor TPNGObject LoadFromResourceName cause they both can load from and instance(either TApplication or a dll handle obtained through LoadLibrary), it's possible to save a Res file from your running app, but then again I couldn't find anywhere how to load some resource off a file at run time something like the following:

LoadFromResourceFile('C:\SomeResFile.RES', MY_PNG_IMAGE_INSIDE_THE_RES_FILE)
ASKER CERTIFIED SOLUTION
Avatar of 2266180
2266180
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial