Android examples for Graphics:Paint
Creates the Paint object for drawing the translucent overlay outside the crop window.
//package com.java2s; import android.content.Context; import android.graphics.Color; import android.graphics.Paint; public class Main { private static final String DEFAULT_BACKGROUND_COLOR_ID = "#00FFFFFF"; /**//from w w w . j a v a2 s. c om * Creates the Paint object for drawing the translucent overlay outside the * crop window. * * @param context the Context * @return the new Paint object */ public static Paint newBackgroundPaint(Context context) { final Paint paint = new Paint(); paint.setColor(Color.parseColor(DEFAULT_BACKGROUND_COLOR_ID)); return paint; } }