Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.graphics.Bitmap;
import android.graphics.Canvas;

public class Main {
    public static Bitmap overlay(Bitmap b, int x, int y) {
        Bitmap empty = Bitmap.createBitmap(x, y, Bitmap.Config.ARGB_4444);
        Canvas cv = new Canvas(empty);
        cv.drawBitmap(b, 0, 0, null);
        cv.save();
        return empty;
    }
}