public async Task ChangeLockWallpaper(Xamarin.Forms.View view) { AndroidView = ConvertFormsToNative(view, new Rectangle(0, 0, width / 6, height / 10)); var bitmap = ConvertViewToBitMap(AndroidView); var info = wallpaperManager.WallpaperInfo; var wallpaper = wallpaperManager.GetWallpaperFile(WallpaperManagerFlags.Lock); var fileDescriptor = wallpaper.FileDescriptor; var bitmapWallpaper = BitmapFactory.DecodeFileDescriptor(fileDescriptor); wallpaper.Close(); Bitmap bmOverlay = Bitmap.CreateBitmap(bitmapWallpaper.Width, bitmapWallpaper.Height, bitmapWallpaper.GetConfig()); Canvas canvas = new Canvas(bmOverlay); canvas.DrawBitmap(bitmapWallpaper, new Matrix(), null); canvas.DrawBitmap(bitmap, 15, 15, null); // Changer la position du post-it await Task.Run(() => { wallpaperManager.SetBitmap(bmOverlay, null, true, WallpaperManagerFlags.Lock); }); }