Android examples for Graphics:Paint
Creates the Paint object for drawing the crop window guidelines.
//package com.java2s; import android.graphics.Color; import android.graphics.Paint; public class Main { private static final String SEMI_TRANSPARENT = "#00FFFF00"; private static final float DEFAULT_GUIDELINE_THICKNESS_PX = 1; /**/* w w w . j ava 2 s . c om*/ * Creates the Paint object for drawing the crop window guidelines. * * @return the new Paint object */ public static Paint newGuidelinePaint() { final Paint paint = new Paint(); paint.setColor(Color.parseColor(SEMI_TRANSPARENT)); paint.setStrokeWidth(DEFAULT_GUIDELINE_THICKNESS_PX); return paint; } }