我的位图总是有空值,这是我的代码:
BitmapFactory.Options myOptions = new BitmapFactory.Options();
myOptions.InDither = true;
myOptions.InScaled = false;
myOptions.InPreferredConfig = Bitmap.Config.Argb8888;
myOptions.InPurgeable = true;
Resources Res = ApplicationContext.Resources;
Bitmap bitmap = BitmapFactory.DecodeResource(Res, Resource.Id.imageView1, myOption);