My objective is to take an image and manipulate it so that it appears there are horizontal and vertical bars over it. I understand that logically I need to step through the pixels and set the RGB value to zero for black for every xth row and every yth col

My objective is to take an image and manipulate it so that it appears there are horizontal and vertical bars over it. I understand that logically I need to step through the pixels and set the RGB value to zero for black for every xth row and every yth column of the image. The logic I am attempting to use in my code is only returning the image in it original state. Can you point in the right direction? Image to use: Canvas to fill: Your browser does not support the HTML5 canvas tag. //Put some vertical dark bars and a couple of horizontal bars on an image //Paramenter c is a canvas object and img is an image object. function putInJail(c, img) { var ctx = c.getContext(“2d”); ctx.drawImage(img, 0, 0); //put the image on the canvas var imgData = ctx.getImageData(0, 0, c.width, c.height); //get picture data i.e the pixels // add the bars var i; var j; var x; //this for loop manipulates the pixel values for (i = 0; i

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational