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)
{
// Declaring the new 3d array to store the frame with the image
//type code here
}
}
I have to make a yellow border around my picture, that is one pixel on each side yellow