Assuming you have an android.graphics.Canvas object called canvas and X and Y are the points where you want to change the pixel, so you go
Call:
canvas.drawPoint(X, Y, paint);
Here's how you initialize an Object of class android.graphics.Paint ie paint
Paint paint = new Paint(); paint.setStyle(Paint.Style.FILL); paint.setColor(Color.WHITE);
More on this Link to change several pixels at different positions, there are many functions that will help you achieve what you want. Good luck :-)
Amandeep jiddewar
source share