Java tutorial
//package com.java2s; //License from project: Apache License import android.annotation.TargetApi; import android.graphics.Bitmap; import android.os.Build; public class Main { @TargetApi(19) private static void setPremultiplied(Bitmap bitmap) { if (Build.VERSION.SDK_INT >= 19 && !bitmap.isPremultiplied()) bitmap.setPremultiplied(true); } }