FaceCircleOverlayView

public final class FaceCircleOverlayView extends View

Shows a transparent overlay with a hole in the middle

Constructors

Link copied to clipboard

Constructor

Constructor

Constructor

Properties

Link copied to clipboard
private final Bitmap backgroundBitmap

Background bitmap

Link copied to clipboard
private Float bottom

Bottom coordinate of the circle

Link copied to clipboard
private Integer centerX

Center x coordinate of the circle

Link copied to clipboard
private Integer centerY

Center y coordinate of the circle

Link copied to clipboard

Height of the circle

Link copied to clipboard

Width of the circle

Link copied to clipboard
private Float diameter

Diameter of the circle

Link copied to clipboard
private Float left

Left coordinate of the circle

Link copied to clipboard
private final Path mPath

Path to draw the circle

Link copied to clipboard

Paint to draw the semi-transparent black overlay

Link copied to clipboard
private Float right

Right coordinate of the circle

Link copied to clipboard
private Float top

Top coordinate of the circle

Functions

Link copied to clipboard
private final Bitmap getBackgroundBitmap()

Background bitmap

Link copied to clipboard
public final Float getBottom()

Bottom coordinate of the circle

Link copied to clipboard
public final Integer getCenterX()

Center x coordinate of the circle

Link copied to clipboard
public final Integer getCenterY()

Center y coordinate of the circle

Link copied to clipboard
public final Float getCircleHeight()

Height of the circle

Link copied to clipboard
public final Float getCircleWidth()

Width of the circle

Link copied to clipboard
public final Float getDiameter()

Diameter of the circle

Link copied to clipboard
public final Float getLeft()

Left coordinate of the circle

Link copied to clipboard
private final Path getMPath()

Path to draw the circle

Link copied to clipboard
private final Paint getMSemiBlackPaint()

Paint to draw the semi-transparent black overlay

Link copied to clipboard
public final Float getRight()

Right coordinate of the circle

Link copied to clipboard
public final Float getTop()

Top coordinate of the circle

Link copied to clipboard
private final Unit initPaints()

Initialize paints

Link copied to clipboard
protected Unit onDraw(Canvas canvas)
Link copied to clipboard
public final Unit setBottom(Float bottom)

Bottom coordinate of the circle

Link copied to clipboard
public final Unit setCenterX(Integer centerX)

Center x coordinate of the circle

Link copied to clipboard
public final Unit setCenterY(Integer centerY)

Center y coordinate of the circle

Link copied to clipboard
public final Unit setCircleHeight(Float circleHeight)

Height of the circle

Link copied to clipboard
public final Unit setCircleWidth(Float circleWidth)

Width of the circle

Link copied to clipboard
public final Unit setDiameter(Float diameter)

Diameter of the circle

Link copied to clipboard
public final Unit setLeft(Float left)

Left coordinate of the circle

Link copied to clipboard
private final Unit setMSemiBlackPaint(Paint mSemiBlackPaint)

Paint to draw the semi-transparent black overlay

Link copied to clipboard
public final Unit setRight(Float right)

Right coordinate of the circle

Link copied to clipboard
public final Unit setTop(Float top)

Top coordinate of the circle