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;

import android.graphics.Paint;

public class Main {
    public static void drawCross(Bitmap bm, int x, int y) {
        Canvas c = new Canvas(bm);
        Paint p = new Paint();
        p.setColor(0xffff0000);
        c.drawLine(x - 4, y, x + 4, y, p);
        c.drawLine(x, y - 4, x, y + 4, p);
    }
}