whats the closest thing to BitBlt in java?

ok, here’s the deal. ive made quite a few 2D tile-based games in the past using straight API calls like BitBlt and what not…they all ran pretty fast, using simple win32 API commands is nice and easy to read, etc.

well im currently working in java and basically im looking for a way to

A. load images into an array, buffer, or something
B. blit them out to the window in an easy manner, like blit(offsetX, offsetY, width, height, masktype).

what should i look up? what library can achieve this in the most simplistic but efficient manner?

ive heard of java2D but im not sure what the extent of it is, or if its overkill in this situation (ie: overloaded with useless stuff i dont need), or if its the ONLY thing i can use?

basically what’s the most immediate way to jump from win32 API blitting in a C++ envrionment to drawing tiles in java.

thanks!

Where Main is the name of your main class:

static final String turret1URL = “/sprites/turret1.png”;
URL url = Main.class.getResource(turret1URL);
ImageIcon xi = new ImageIcon(url);
Image turret1Image = xi.getImage();

public void paint(Graphics g) {
int x=10,y=10;
g.drawImage(turrent1Image,x,y,null);
}

http://www.java-gaming.org/cgi-bin/JGOForums/YaBB.cgi?board=share;action=display;num=1036252001

http://www.java-gaming.org/cgi-bin/JGOForums/YaBB.cgi?board=Announcements;action=display;num=1042134093

If you don’t mind using someone elses library look at http://www.scottshaver2000.com under the libraries section look at Planetation. Tiles, sprites, map editor, sound, client/server, etc.

Can also find information in http://www.scottshaver2000.com/forum