TexturePaint theTexturePaintObj = 
        new TexturePaint(
                      getBufferedImage(),anchor);

Figure 10