xamarin android c#动态壁纸设置图像

时间:2017-11-16 04:38:26

标签: c# android xamarin xamarin.android bitmapfactory

我正在尝试将多个图像设置为c#中的Xamarin android app中的live wallpaer,因为我是bitmapfactory的新手我在getResources()java代码中遇到错误c#。有人可以帮助我。

       Bitmap bm = BitmapFactory.DecodeFile(@"D:\New folder\Downloads\Compressed\Properties\Resources\drawable-hdpi\P.jpg");
           // Bitmap bm = BitmapFactory.DecodeResource(null, Resource.Drawable.P);
            c.DrawBitmap(bm, 100, 200, null);

plz找到解决方案链接:Solution of multiple images Live Wallpaper

0 个答案:

没有答案