Interface Canvas


public interface Canvas
The Interface Canvas.
  • Method Details

    • setBitmap

      void setBitmap(Bitmap bitmap)
      Sets the backing Bitmap.
    • drawText

      void drawText(String string, float x, float y, Paint paint)
      Draw text to Canvas.
    • drawText

      void drawText(String string, float x, float y, Paint fill, Paint stroke)
      Draw text to Canvas.
    • drawBitmap

      void drawBitmap(Bitmap bitmap, float x, float y)
      Draw Bitmap to Canvas.
    • drawBitmapScaled

      void drawBitmapScaled(Bitmap bitmap)
      Draw scaled Bitmap to fill target.
    • drawCircle

      void drawCircle(float x, float y, float radius, Paint paint)
    • drawLine

      void drawLine(float x1, float y1, float x2, float y2, Paint paint)
    • fillColor

      void fillColor(int color)
    • fillRectangle

      void fillRectangle(float x, float y, float width, float height, int color)
    • getHeight

      int getHeight()
    • getWidth

      int getWidth()