next up previous
Next: About this document Up: The Generic Image Previous: Step 4

Step 5

The code

     dest = createImage(new MemoryImageSource(i_w,i_h,dest_1d,0,i_w));
creates an Image object from a one-dimensional array of pixels of a particular size. This image can be, in turn, tied to an ImageCanvas and displayed by:
     grid.add(dest_canvas = new ImageCanvas(dest));



Bob Fisher
Fri Jul 4 16:11:50 BST 1997