public abstract class FrameGraphic extends GraphicOverlay.Graphic implements Util.FrameSizeProvider
mOverlay| Constructor and Description |
|---|
FrameGraphic(GraphicOverlay overlay) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(android.graphics.Canvas canvas)
Draw the graphic on the supplied canvas.
|
int |
frameHeight() |
int |
frameWidth() |
int |
getScaledFrameHeight() |
int |
getScaledFrameWidth() |
postInvalidate, scaleX, scaleY, translateX, translateYpublic FrameGraphic(GraphicOverlay overlay)
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 getScaledFrameWidth()
public int getScaledFrameHeight()
public int frameHeight()
frameHeight in interface Util.FrameSizeProviderpublic int frameWidth()
frameWidth in interface Util.FrameSizeProvider