[ Home | Main Table Of Contents | Table Of Contents | Keyword Index ]

crimp_tk(n) 0.2 doc "C Raster Image Manipulation Package"

Name

crimp_tk - CRIMP - Tk Photo Handling

Table Of Contents

Synopsis

  • package require Tcl 8.5
  • package require Tk 8.5
  • package require crimp::tk ?0.2?

Description

This package provides commands for the conversion of CRIMP images to Tk photos image and vice versa, i.e. the export of images for display, and import from a display.

For a basic introduction of the whole CRIMP eco-system please read the CRIMP - Introduction to CRIMP (sic!). The basic concepts used here, like images, image types, etc. are described in the reference manpage for the CRIMP - Foundation. We will not repeat them here, but assume that the reader knows them already.

In the overall architecture this package resides in the middle layer of the system's architecture, between core and applications, as shown at

arch_tk

The commands it provides all fall into the I/O category of the general design.

Tcl API

::crimp read tk photo

This method extends the ::crimp read ensemble. It takes the name of a Tk photo command and returns an image of type rgba containing the photo's contents.

::crimp write 2tk photo image

This method extends the ::crimp write ensemble. It takes two arguments, the name of a Tk photo command and an image, and stores the image into the photo, overwriting the previous contents.

The method returns the empty string.

The supported image types are grey8, rgb, and rgba.

Keywords

Export tk photo, Import tk photo, Tk photo export, Tk photo import, computer vision, document processing, image, matrix, photo, vector