I'm doing some exercises with the canvas and drawing on it. Is there an elegant way to paint large canvas, e.g. for a map of a tile based board game? I'm trying to create a 4000/4000 pixel canvas but get always an out of memory or null pointer exception. Additionally the performance when scrolling in a scrollpane of the canvas is pretty bad.