Hi!
hchurch wrote:
In order to load a resource file/image into an xImage, you must first save the resource image as a temporary file and THEN use the new temporary file's path as the stream of the xImage.
I haven't tried it yet, but I bet there is a simpler way.
You should be able to read any resource as a stream and get the XImage directly from that stream.
I don't know whether you have to change the compile type of the image resource (to e.g. Embedded Resource).
You can use a tool like DotNetPeek to see the names of the resources in your assembly.
You can use a MemoryStream to avoid creating a temporary file if you stick to your current approach.