copyArea == drawImage?

I’m wondering if Graphics.copyArea() is equivalent, performance-wise, to Graphics.drawImage(). I guess that drawImage() may be slower if the two Images have different pixel formats, because the pixel format will always be the same in copyArea() since it copies from itself. However, if I create both Images myself, can’t I reasonably expect their formats to be the same? Does anyone know if drawImage() and copyArea() have equal execution times?

Thanks,
Stefan

Note that you can’t use copyArea to copy from one image to another. Its purpose is to copy an area of a surface to the same surface.

Generally, it’d be faster to use copyArea than copying an area from an image to the same image using drawImage.

Okay, cool thanks.