Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有图片( /Assets/Cat.png )。我需要获取此图像的流。我尝试了一些方法,但都没有成功。我应该怎么办?
为了得到图像的流使用这个
Stream myStream = App.GetResourceStream(new Uri("Assets/Cat.png", UrKind.RelativeOrAbsolute)).Stream;