Hi Cesar,
If the libraries and the images are compiled into the same EXE, you can use FILETOSTR to load the image into a string. Then you can pass this string to an API function that loads the image from memory. In any case, right now, I'm using the following code to load embedded images. Copying the file into the temporary directory isn't that much of a performance hit:
If ADir(laFile,Addbs(GetEnv("TEMP"))+JustFname(m.lcImage)) == 0
StrToFile(FileToStr(m.lcImage),Addbs(GetEnv("TEMP"))+JustFname(m.lcImage))
EndIf
loImage = _Screen.System.Drawing.Image.FromFile( ;
Addbs(GetEnv("TEMP")) + JustFname(m.lcImage) ;
)
--
Christof