Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

First, read an image from disk

    CImageGrey img -this [File PGMRead shape2.pgm]
Then create an Tk image for transfer purpose
    set res [image create photo img$img]
Then, transfer from the morphological format to the Tk format
    TransferToPhoto [img cget -this] $res b
Then display the image on a canvas
    canvas .c -background blue
    .c create image 3 3 -anchor nw -image $res
    pack .c -fill both -expand true
    #

Generated at Sun May 12 19:04:30 2002 for OpenMorpho by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000