View Single Post
Old 04-25-2004, 03:38 PM   #2 (permalink)
zoerb
 
Junior Techie

Join Date: Oct 2003

Posts: 85

zoerb

Default

Image imageName;
imageName = getImage(getDocumentBase(),"image.jpg");
g.drawImage(snake,xlocation,ylocation,this);

where g is the graphics device painting your window

and also, this only works if the image is in the program's folder, otherwise replace getDocumentBase() with the full image path, such as getImage(c:\folder, "image.jpg")
__________________
Asus A7n8x-x
athlon 2800
radeon 9600 pro
512 mb 2700 mem
western digital 80gb special edition
zoerb is offline