Example usage for android.graphics Bitmap setPremultiplied

List of usage examples for android.graphics Bitmap setPremultiplied

Introduction

In this page you can find the example usage for android.graphics Bitmap setPremultiplied.

Prototype

public final void setPremultiplied(boolean premultiplied) 

Source Link

Document

Sets whether the bitmap should treat its data as pre-multiplied.

Usage

From source file:Main.java

@TargetApi(19)
private static void setPremultiplied(Bitmap bitmap) {
    if (Build.VERSION.SDK_INT >= 19 && !bitmap.isPremultiplied())
        bitmap.setPremultiplied(true);
}