Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.graphics.Bitmap;

public class Main {
    public static Bitmap createPlaceholderBitmap(int width, int height) {
        Bitmap.Config config = Bitmap.Config.ARGB_8888;
        Bitmap placeholderBitmap = Bitmap.createBitmap(width, height, config);
        placeholderBitmap.eraseColor(android.graphics.Color.DKGRAY);
        return placeholderBitmap;
    }
}