Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.content.Context;

import android.graphics.Bitmap;

import android.graphics.Matrix;

public class Main {
    public static Bitmap createBitmap(Context paramContext, int paramInt1, int paramInt2,
            Bitmap.Config paramConfig) {
        try {
            Bitmap localBitmap = Bitmap.createBitmap(paramInt1, paramInt2, paramConfig);
            return localBitmap;
        } catch (OutOfMemoryError localOutOfMemoryError) {
        }
        return null;
    }

    public static Bitmap createBitmap(Context paramContext, Bitmap paramBitmap, int paramInt1, int paramInt2,
            int paramInt3, int paramInt4) {
        try {
            Bitmap localBitmap = Bitmap.createBitmap(paramBitmap, paramInt1, paramInt2, paramInt3, paramInt4);
            return localBitmap;
        } catch (OutOfMemoryError localOutOfMemoryError) {
        }
        return null;
    }

    public static Bitmap createBitmap(Context paramContext, Bitmap paramBitmap, int paramInt1, int paramInt2,
            int paramInt3, int paramInt4, Matrix paramMatrix, boolean paramBoolean) {
        try {
            Bitmap localBitmap = Bitmap.createBitmap(paramBitmap, paramInt1, paramInt2, paramInt3, paramInt4,
                    paramMatrix, paramBoolean);
            return localBitmap;
        } catch (OutOfMemoryError localOutOfMemoryError) {
        }
        return null;
    }
}