Java tutorial
//package com.java2s; //License from project: Apache License import android.graphics.PorterDuff; import android.graphics.drawable.Drawable; public class Main { /** * TODO doc * * @param sourceBitmap * @param color * @return */ public static Drawable getDrawableSilhouetteWithColor(Drawable sourceBitmap, int color) { sourceBitmap.setColorFilter(color, PorterDuff.Mode.SRC_ATOP); return sourceBitmap; } }