Here you can find the source of drawCross(Bitmap bm, int x, int y)
public static void drawCross(Bitmap bm, int x, int y)
//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);/*w w w. j a va 2 s.c om*/ c.drawLine(x - 4, y, x + 4, y, p); c.drawLine(x, y - 4, x, y + 4, p); } }