Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.graphics.*;
import android.graphics.Bitmap.Config;

public class Main {
    public static final Bitmap EMPTY_BITMAP = Bitmap.createBitmap(1, 1, Config.ARGB_8888);

    public static boolean isEmpty(Bitmap image) {
        return image == null || image == EMPTY_BITMAP || (image.getWidth() == 1 && image.getHeight() == 1);
    }
}