This test shows how to use the canvas ImageData api with gfx. Two approaches are illustrated: