Example usage for android.graphics Bitmap isPremultiplied

List of usage examples for android.graphics Bitmap isPremultiplied

Introduction

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

Prototype

public final boolean isPremultiplied() 

Source Link

Document

Indicates whether pixels stored in this bitmaps are stored 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);/*from   www  .ja v a  2  s  . co  m*/
}