[HOME][CONTENTS][DOWNLOAD][PREV][NEXT]


IMAGE DISPLAY WITH GIMG

XBit has implemented an image type, gimg, to be used with Tk widgets. Like a Tk photo image, a gimg can be used in any where a Tk image may be used. A fundmental difference between gimg and photo is the image display model. A photo uses a static display model which is defined by either an image data string or a well-defined image file. A gimg uses dynamic display models which are independent of the image data stream or file in display. Two display models used by a gimg are color composite display and pseudo color display. A gimg can use up to three separated color channels to re-organize an image data stream based on RAMIM at run-time. In addition, a gimg has many build-in functions for image color manipulation, enhancement, rotation, and magnification. The command to create a gimg is 

image create gimg ?options?

There are more than fifty options available to a gimg configuration. These options can be grouped into several categories including

    options for color configuration: -background, -foreground, -palette, -dither and -dg; 

    options for image data configuration:  -layer, -data, -file, -maskfile, -maskclass, -maskimgband, -sttipple, -maskon and -maskopaque; 

    options for image enhancement: -func, -range, -gamma, -gmid, -comb, -low0, -high0, -low1, -high1, -loow2, -high2, -std, -contrast, -bright, -sharpness and -emboss; 

    options for image data structure definition: -columns, -rows, -dx, -dy, -imgid, -left, -mapid, -msbf, -nbands, -offset, -pixel, -top, -x0 and -y0; 

    options for image view port configuration: -sr, -sc, -mx, -my, -height, -width, -maxh, -maxw, -rotate, -xflip, -yflip, -tile, -tw and -th; 

    other miscellaneous options: -autod, -update and -turbo. 

In addition, a gimg provides more than twenty commands for image information retrieval, image copy with zoom, save a RGB composite image into an image file, capture a displayed image into a memory resident RAMIM image or clipboard (Windows only), coordinates transformation, image data read and write, image statistics retrieval, image mask creation and manipulation, and etc. 

Application of gimg include image display, enhancement, analysis, animation and GUI. A typical example is a VIEW program built with Tcl/Tk. 

[HOME][CONTENTS][DOWNLOAD]


emboss 


pseudo color display


negative display

1