Ok well i have a function called drawVerticalLine and it's method header is the following : void drawVerticalLine(int[][] img,int lineWidth, int linePosition)
so what happenes is a picture is converted to a 2d array etc and passed on to this function, now the goal is to draw a red verticle line on the picture.
also i have a declared variable called : final static int RED = Color.RED.getRGB();
to set the color of the vertical line
Now so far i've figured this out :
public static void drawVerticalLine(int[][] img,int lineWidth, int linePosition)
{
for(int i=0;i = linePosition;i++)
{
for(int j=0; j=lineWidth; j++)
{
// have no idea what to do
}
}
}
Now i dont have any experience with images, i do more calculating stuff, however i've been asked to try to accomplish this task. some help would be really appreciated.
Thank You.