large memory image

I am implementing a paint progam. I am using double buffering with

Image offscreen_image

to display on screen.i want to implement such that the offscreen image can have any size. However the application gives an outofmemory error if i set the size of image beyond 4000,4000. It is not enough for the application i have in mind.[br][br]

Is there any image object in which i can allocate as much memory as i want ?

[438 byte] By [Kakaa] at [2007-11-26 17:43:51]
# 1
Why would you want an offscreen image with this size?I'm not aware of a screen resolution this big.Anyway you can use the -Xmx option to define bigger heap memory size.
Rodney_McKaya at 2007-7-9 0:12:03 > top of Java-index,Desktop,Core GUI APIs...
# 2

I need such a big image because i want to display a network layout graph. Depending on the size of network, the final drawing might extend upto 6-8 times the size of screen.

i will display only the portion that fits the screen but i need the entire image stored somewhere offscreen. thats why i need a large image.

Is there any other way to do this ?

Kakaa at 2007-7-9 0:12:03 > top of Java-index,Desktop,Core GUI APIs...
# 3
Yes.You can compress the image offscreen and show only the relevant part.Something like tiling or strips.You can also use the disk to save the image, and read only the relevant part that you need.
Rodney_McKaya at 2007-7-9 0:12:03 > top of Java-index,Desktop,Core GUI APIs...