Version 0 of A Screenshot Widget implemented with TclOO

Updated 2018-01-04 16:54:50 by job

JOB 18-10-04,

Purpose:

A TclOO class which implements a convinient way to create a screen shot. The screenshot not only works "internally" for tk widgets such as for example the image create photo -format window -data $mywidget command, but for any portion of the display.

WikiDBImage screenshot.png

Implementation:

The screen picture is captured with the "loupe" utility function included in the treectrl (binary) package. To save the image to various image file formats, the Img package is also required. The code can be used nearly "stand alone" but might be useful for various other application, e.g. like a note taken application, etc...

  • screenshot.tcl
  • pkgIndex.tcl
  • screenshot_test.tcl