Introduction - If you have any usage issues, please Google them yourself
package com.cqvie
import android.graphics.*
import android.graphics.Paint.Style
public class Kuai
{
//public int HANG, LIE //最大行、最大列
public int hang, lie //?前行、?前列
public int BianChang //方?的??
public int YanSe //方?的?色
public void Hua(Bitmap bmp) //在?布上?方?
{
Canvas c=new Canvas(bmp)
Rect rc=new Rect(
lie* BianChang, hang* BianChang,
(lie+1)* BianChang,(hang+1)* BianChang)
Paint paint=new Paint()
paint.setColor(YanSe)
paint.setStyle(Style.STROKE) //空心
paint.setStrokeWidth(2) //??
c.drawRect(rc, paint)
}
}