How can I get information about the source image of a WPF <Image>
element?
My <Image>
element has its Source bound to an ImageSource property, which changes frequently. In my code behind, I need to be able to access the actual width of the current source image file (in regular pixels), for mathematical purposes. My application will perform image operations on the image file, so this information is necessary.
Any help is appreciated.