Picture programming problems im new

public void doSetAlpha( @ParamDescrip(“alpha value (0-255)”) int value )
{
PixelColour alpha = new PixelColour( red, green, blue, value );
Pixel nextPixel;

for( int y = 100; y < myPic.getImgHeight(); y++ )
{
for( int x = 100; x < myPic.getImgWidth(); x++ )
{

              nextPixel = myPic.getPixel( x, y ); 
              nextPixel.setColour(  alpha );
            }
}

}

basically im setting the transparency in a picture and in the loop i cant figure out how to set it to scan the red green and blue levels so it will look proper :wink: