示例#1
0
 protected override void OnDraw(Android.Graphics.Canvas canvas)
 {
     base.OnDraw(canvas);
     if (_Selected)
     {
         canvas.DrawARGB(255, 255, 0, 0);
     }
     else
     {
         canvas.DrawARGB(255, 0, 255, 0);
     }
 }
示例#2
0
 public void Clear(Color fill)
 {
     if (SourceBitmap != null)
     {
         SourceBitmap.Clear(fill);
     }
     else
     {
         ACanvas.DrawARGB(fill.A, fill.R, fill.G, fill.B);
     }
 }
示例#3
0
 public void Clear(Color fill)
 {
     jBufferPosition = 0;
     Flush();
     if (SourceBitmap != null)
     {
         SourceBitmap.Clear(fill);
     }
     else
     {
         ACanvas.DrawARGB(fill.A, fill.R, fill.G, fill.B);
     }
 }