package Unit3_Mod2;
public class ImageExample3 {
public static void main (String[] argv)
{
int[][][] A = {
{
{255,200,0,0}, {255,150,0,0}, {255,100,0,0}, {255,50,0,0},
},
{
{255,0,200,0}, {255,0,150,0}, {255,0,100,0}, {255,50,0,0},
},
{
{255,0,0,200}, {255,0,0,150}, {255,0,0,100}, {255,0,0,50},
},
};
// Add one pixel on each side to give it a "frame"
int[][][] B = frameIt (A);
ImageTool im = new ImageTool ();
im.showImage (B, "test yellow frame");
}
public static int[][][] frameIt (int[][][] A)
{
//add code here
}
}
Make a yellow frame , one pixel to each side.