0

アプリケーションの作成時に使用できるデフォルトの画像以外の画像を取得できません。私のコードは

WriteableBitmap sourceBitmap = new WriteableBitmap(1, 1); sourceBitmap = sourceBitmap.FromContent(@"Images/viewback_collection.png");

Nullreference 例外としてエラーが発生しています。

4

1 に答える 1

0

画像を右クリックして「viewback_collection.png」のビルド アクションをコンテンツ タイプに設定 > プロパティ > ビルド アクション = コンテンツ

于 2013-09-19T09:40:56.097 に答える