0

Mycode 从资源加载位图:

   Uri _uri = new Uri("e.jpg", UriKind.RelativeOrAbsolute);
   BitmapImage bmp = new BitmapImage(_uri);
   int iW = bmp.PixelWidth;
   int iH = bmp.PixelHeight;

bmp 加载成功但是 iW 和 iH 都是 0。我不知道为什么?你能告诉我我是怎么解决的吗?

4

1 回答 1

0

you may have to find where PixelWidth and PixelHeight are defined.

于 2012-04-12T03:25:07.823 回答