public void Blit( object otherBmpObj, int targetX, int targetY, int sourceX, int sourceY, int width, int height) { AndroidBitmap otherBmp = (AndroidBitmap)otherBmpObj; this.GetCanvas().DrawBitmap(otherBmp.bmp, targetX, targetY, null); }
public static bool LoadSync(string filename, object[] nativeImageDataNativeData, List <Value> statusOutCheesy) { Android.Graphics.Bitmap nativeBmp = ResourceReader.ReadImageFile("ImageSheets/" + filename); if (nativeBmp != null) { AndroidBitmap bmp = new AndroidBitmap(nativeBmp); if (statusOutCheesy != null) { statusOutCheesy.Reverse(); } nativeImageDataNativeData[0] = bmp; nativeImageDataNativeData[1] = bmp.Width; nativeImageDataNativeData[2] = bmp.Height; return(true); } return(false); }