Question about TiledImage, Graphics2D, JAI

G

Gavin Rough

I've combed through everything I can find, bought a fat book on JAI,
and haven't been able to put together a strait answer to this question:

How do I create an arbitrarily large TiledImage from scratch (lacking a
source image) and draw onto it using the TiledImage's graphics context
( TiledImage.createGraphics() ) without causing an
OutOfMemoryException?

The content of the image would be purely Graphics2D geometry. I don't
need to read in any external images, just to be able to create, and
draw on, very large blank images. I'm assuming that TiledImage is the
most appropriate class for this, but haven't been able to find any
sample implementations.

There must be some way to draw on a TiledImage as one unified image,
while still managing memory using tiles.

If anybody has any tips, or are able to break this down for me a little
bit I would be very, very grateful. I'm an amateur programmer and have
been struggling with this problem for a while.

Thanks,
Gavin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top