public class OcrGraphic extends GraphicOverlay.Graphic
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(float x,
float y)
Checks whether a point is within the bounding box of this graphic.
|
void |
draw(android.graphics.Canvas canvas)
Draws the text block annotations for position, size, and raw value on the supplied canvas.
|
int |
getId() |
com.google.android.gms.vision.text.TextBlock |
getTextBlock() |
void |
setId(int id) |
postInvalidate, scaleX, scaleY, translateX, translateYpublic int getId()
public void setId(int id)
public com.google.android.gms.vision.text.TextBlock getTextBlock()
public boolean contains(float x,
float y)
contains in class GraphicOverlay.Graphicx - An x parameter in the relative context of the canvas.y - A y parameter in the relative context of the canvas.public void draw(android.graphics.Canvas canvas)
draw in class GraphicOverlay.Graphic