Exemple #1
0
 /**
  * Get a Canvas for drawing. Actual drawing should be synchronized on the instance of
  * BufferedCanvas being used.
  *
  * @return The Canvas instance to draw onto. Returns null if drawing buffers have not been
  *     initialized a la {@link #resize(int, int)}.
  */
 public synchronized Canvas getCanvas() {
   if (bgBuffer != null) {
     canvas.setBitmap(bgBuffer);
     return canvas;
   } else {
     return null;
   }
 }