Main Page | Data Structures | Directories | File List | Data Fields | Globals

Sadie_Image.c File Reference

Tk support for SADIE images. More...

#include <tcl.h>
#include <tk.h>
#include <string.h>
#include <sadie.h>
#include "tclsadie.h"

Go to the source code of this file.

Functions

int Sadie_Image_Init (Tcl_Interp *interp)
 Define a new Tk image format that handles SADIE images.

Variables

Tk_PhotoImageFormat tkImgFmtSADIE
 The structure Tk uses to hold application-provided callback pointers.


Detailed Description

Tk support for SADIE images.

The image format support within Tk is extensible without requiring any changes to the installed Tk or Tcl libraries. Applications can use certain data structures pre-defined within the Tk API to register their own image handling callbacks with Tk, so here we define callbacks to handle SADIE images. It isn't necessary to define all possible callbacks, and for the string interface we can get away with using the image ID strings rather than strings that directly encode the image content. The only hidden complications arise from changes to the Tk API after version 8.3: newer versions of the image handling interface break older code, and whether the image format is upper or lower case starts to have significance. Please refer to any documentation for the Tk_CreatePhotoImageFormat Tk function for more information.

Author:
University of Arizona Digital Image Analysis Lab
Date:
1999, 2004
Version:
Id
Sadie_Image.c,v 2.4 2005/03/22 21:37:39 mmunro Exp

Definition in file Sadie_Image.c.


Function Documentation

int Sadie_Image_Init Tcl_Interp *  interp  ) 
 

Define a new Tk image format that handles SADIE images.

Parameters:
[in] interp the main Tcl interpreter.
Returns:
TCL_OK on success.

Definition at line 504 of file Sadie_Image.c.

References tkImgFmtSADIE.

Referenced by Tcl_AppInit().


Variable Documentation

Tk_PhotoImageFormat tkImgFmtSADIE
 

Initial value:

  {
    "sadie", 
    NULL, 
    MatchSADIE, 
    NULL, 
    ReadSADIE, 
    WriteSADIE, 
    NULL  
  }
The structure Tk uses to hold application-provided callback pointers.

Definition at line 65 of file Sadie_Image.c.

Referenced by Sadie_Image_Init().


Generated on Fri Jul 8 14:55:02 2005 for tclSadie by  doxygen 1.4.2