Simple Java Image Help Please (createImage() not working)

Status
Not open for further replies.

MooseAreFun

Ars Legatus Legionis
10,827
Subscriptor
I'm trying to do some Java image work, but I can't get createImage() to work, it always brings up a compile error of "cannot resolve symbol".

(Trimmed code)
Code:
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import javax.swing.*;
import java.util.*;
import java.io.*;

Code:
Image blah = createImage(255,355);

Code:
.\imageProcessor.java:21: cannot resolve symbol
symbol  : method createImage  (int,int)
location: class imageProcessor
        Image j = createImage(255,355); 
                  ^
Commenting out that line and all will compile. Copying from various examples all seems like I have the syntax OK (I'm really trying to use an imageproducer, but it gives the same error), but this happens on my other machine too. What's wrong?
 
Status
Not open for further replies.