camera = c;
}
public Cursor createCursor(String filename, int offsetX, int offsetY)
{
PImage img = p.loadImage(filename);
Dimension d = Toolkit.getDefaultToolkit().getBestCursorSize(img.width,
img.height);
PImage resized = p.createImage(d.width, d.height, PImage.ARGB);
resized.copy(img, 0, 0, img.width, img.height, 0, 0, img.width,
img.height);
Image image = UIUtils.PImageToImage(resized);
return Toolkit.getDefaultToolkit().createCustomCursor(image,
new java.awt.Point(offsetX, offsetY), "asdf");
}