public class FrameGraphic extends GraphicOverlay.Graphic
| Modifier and Type | Class and Description |
|---|---|
static interface |
FrameGraphic.FrameSizeProvider |
mOverlay| Constructor and Description |
|---|
FrameGraphic(GraphicOverlay overlay,
boolean isForPassport) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(android.graphics.Canvas canvas)
Draw the graphic on the supplied canvas.
|
int |
getFrameHeight() |
int |
getFrameWidth() |
postInvalidate, scaleX, scaleY, translateX, translateYpublic FrameGraphic(GraphicOverlay overlay, boolean isForPassport)
public void draw(android.graphics.Canvas canvas)
GraphicOverlay.Graphic#scaleX(float) and GraphicOverlay.Graphic#scaleY(float) adjust the size of
the supplied value from the preview scale to the view scale.GraphicOverlay.Graphic#translateX(float) and GraphicOverlay.Graphic#translateY(float) adjust the
coordinate from the preview's coordinate system to the view coordinate system.draw in class GraphicOverlay.Graphiccanvas - drawing canvaspublic int getFrameWidth()
public int getFrameHeight()