Beispiel #1
0
 /// <summary>Draw a bitmap of nine patches.</summary>
 /// <remarks>Draw a bitmap of nine patches.</remarks>
 /// <param name="canvas">A container for the current matrix and clip used to draw the bitmap.
 ///     </param>
 /// <param name="location">Where to draw the bitmap.</param>
 public virtual void draw(android.graphics.Canvas canvas, android.graphics.RectF location
                          )
 {
     if (!canvas.isHardwareAccelerated())
     {
         nativeDraw(canvas.mNativeCanvas, location, mBitmap.nativeInstance, mChunk, mPaint
                    != null ? mPaint.mNativePaint : null, canvas.mDensity, mBitmap.mDensity);
     }
     else
     {
         canvas.drawPatch(mBitmap, mChunk, location, mPaint);
     }
 }