Package org.oscim.backend.canvas
Interface Canvas
public interface Canvas
The Interface Canvas.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddrawBitmap(Bitmap bitmap, float x, float y) Draw Bitmap to Canvas.voiddrawBitmapScaled(Bitmap bitmap) Draw scaled Bitmap to fill target.voiddrawCircle(float x, float y, float radius, Paint paint) voidvoidDraw text to Canvas.voidDraw text to Canvas.voidfillColor(int color) voidfillRectangle(float x, float y, float width, float height, int color) intintgetWidth()voidSets the backingBitmap.
-
Method Details
-
setBitmap
Sets the backingBitmap. -
drawText
Draw text to Canvas. -
drawText
Draw text to Canvas. -
drawBitmap
Draw Bitmap to Canvas. -
drawBitmapScaled
Draw scaled Bitmap to fill target. -
drawCircle
-
drawLine
-
fillColor
void fillColor(int color) -
fillRectangle
void fillRectangle(float x, float y, float width, float height, int color) -
getHeight
int getHeight() -
getWidth
int getWidth()
-