Hi there. I am creating a simple image editor in Netbeans 4.1. I have a Frame which has a panel listing options to the user such as Zoom In, Zoom Out, Set the picture to black and white etc. I then have a panel where images are loaded to and edited. I am in the process of making the Zoom In function work. I have set up the code in the frame and have been given the code for the panel with gaps that we need to fill in. My problem is that I can't get it to work. Below is the code
public void zoomIn() {
int row, column;
int r = 0, g = 1, b = 2; // To access arrays easily
int tLeft = 0, tRight = 4;
int mLeft = 0, mMid = 4, mRight = 8;
int cMod, cTemp;
// The counter for the actual array element, with RGBA as 4 entries
int block;
// One block of pixels to be expanded at a time
int rowTemp, rowModified;
int wmaxT, wmaxM;
if(zoomLevel > rowModified) return; // Cannot zoom any further
gTempBuffer.drawImage(myModifiedBuffer, 0, 0, this);
gModifiedBuffer.setColor(Color.white);
gModifiedBuffer.fillRect(0, 0, dPanel.width, dPanel.height);