FaceOvalOverlayView

public final class FaceOvalOverlayView extends View

Shows a transparent overlay with an oval hole in the middle

Constructors

Link copied to clipboard

Constructor to initialize the view

Constructor to initialize the view

public FaceOvalOverlayView FaceOvalOverlayView(Context context, AttributeSet attrs, Integer defStyleAttr)

Constructor to initialize the view

Properties

Link copied to clipboard
private final Bitmap backgroundBitmap

The background bitmap to show in the overlay

Link copied to clipboard
private Integer centerX

Center x coordinate of the oval

Link copied to clipboard
private Integer centerY

Center y coordinate of the oval

Link copied to clipboard
private final Path mPath

Path to draw the oval

Link copied to clipboard

Paint to draw the semi-transparent black overlay

Link copied to clipboard

Height of the oval

Link copied to clipboard

Width of the oval

Functions

Link copied to clipboard
private final Bitmap getBackgroundBitmap()

The background bitmap to show in the overlay

Link copied to clipboard
private final Integer getCenterX()

Center x coordinate of the oval

Link copied to clipboard
public final Integer getCenterY()

Center y coordinate of the oval

Link copied to clipboard
private final Path getMPath()

Path to draw the oval

Link copied to clipboard
private final Paint getMSemiBlackPaint()

Paint to draw the semi-transparent black overlay

Link copied to clipboard
public final Integer getOvalHeight()

Height of the oval

Link copied to clipboard
public final Integer getOvalWidth()

Width of the oval

Link copied to clipboard
private final Unit initPaints()

Initialize the paints for the view

Link copied to clipboard
protected Unit onDraw(Canvas canvas)
Link copied to clipboard
private final Unit setCenterX(Integer centerX)

Center x coordinate of the oval

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

Center y coordinate of the oval

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 setOvalHeight(Integer ovalHeight)

Height of the oval

Link copied to clipboard
public final Unit setOvalWidth(Integer ovalWidth)

Width of the oval