I fugure out how to add this, one problem that I'm having is to load the images.
When I pass image location, the image is not loading.
This line of code always has 0 for all options:
_imgRec = this.GetImageRec(ImageUri);
It looks like the GetImageRec can't return the actual size of the image...not sure why..I try different ways. The only way I didn't try is to load from resources.
The GetImageRec takes the ImageUri and does the following:
- Takes the calling object and gets its assembly information
- appends .Resources.<ImageUri value> to the retrieved assembly's namespace
- calls myAssembly.GetManifestResourceStream(<string from process above>) and gets that image's rectangle
So, check the calling object's NameSpace and see if there is a Resources folder at the first level, then check to see if that URI is in that folder.
Alternatively, you could output the image to the local device in a folder called Resources that is located in the same directory as the executable
let me know if there is anything else i can help you with