Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 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);
 }