Problem fixed, everything you linked me was completely opposite of the fix that was found.
Type: Posts; User: Vesper
Problem fixed, everything you linked me was completely opposite of the fix that was found.
That still tells me nothing, it's trying to find getWidth and getHeight which are part of the Java library, this is what im finding confusing. It's not finding something that i've already imported...
But how do I declare it? and where would I declare it, everything i've tried doesn't seem to work.
SlidingBlockModel(int nc, int nr, String image_filename )
{
numCols = nc;
numRows = nr;
int w = getWidth();
int h = getHeight();
original_image = null;
C:\Users\Vesper\Desktop\Practical Programming - CI2250\Workshop 5\Task 2\SlidingBlockModel.java:32: cannot find symbol
symbol : method getWidth()
location: class SlidingBlockModel
int w =...
import java.awt.image.*;
import javax.imageio.*;
import java.io.File;
class SlidingBlockModel
{
BufferedImage original_image; // the image to be cut up into blocks
int numCols; // number...
I declared them before using :
int w = getWidth();
int h = getHeight();
I put this in the class, in the constructor, everywhere but it gave me the same error saying that it couldn't find...
I'm working on this task for my university, and I've come up to an impass.
Im trying to display in a system.out.println method to display the width and height of an image.
So far i've gotten it...