The Image item is the simplest of all of the Tkgraph Canvas item types. The only properties you can specify for the Image item are its position on the Canvas, and the source file.
Image items in Tkgraph are very basic. Tkgraph contains no image manipulation routines. All that it will do is display an existing image on disk. If you need to alter the image in any way, such as adjusting the contrast or resizing, then you need to perform these functions with some other program such as xv, Adobe Photoshop, or Gimp.
Let's start by creating a new Image on the Canvas. Press the Image button on the shortcut toolbar and then click anywhere on the Canvas. You will see a ping square with a X in the middle appear on the screen. This is a blank image. It is only a placeholder until you insert your own image.
To use your own image, go back to the Image tab in the Control Panel. Once again, the buttons at the top of the Image tab function the same as those at the top of the Label tab. When you select an Image item on the Canvas, it will not change appearance, just as the Label item before did not change appearance. Again, this may change in future versions.
Shift-click on the Image item that you created on the Canvas to select it. Remember, it's appearance won't change to indicate that it has been selected. Now go to the Control Panel. In the Image Source property entry, enter the location of a GIF format image on your computer. Press the checkbox and then press the Apply button. If the pink square is replaced by your image, then it worked. If the image that you specified does not exist, then Tkgraph will revert back to using the ping square. Check the image on your computer and try again.
Now you have been introduced to the most commonly used Canvas items in Tkgraph.
![]() |
![]() |
![]() |
[Prev] | [Top] | [Next] |