1 Description of the tests 2 ======================== 3 4testFull.tcl: Read and write full images 5testFrom.tcl: Read and write images with option "-from" 6testTo.tcl: Read and write images with option "-to" 7testSmall.tcl: Read and write images with sizes from 1x1 to 4x4 8 9Each test performs the following operations: 10 11For each image format "fmt": 12 1. Draw the test canvas, store it in a photo image 13 and write it to a file in format "fmt". 14 15 2. Read the image from file in different ways and display it. 16 17 18The following ways to read image data are tested: 19Read from file 1: image create photo -file $fileName 20Read from file 2: set ph [image create photo] ; $ph read $fileName 21Read as binary 1: image create photo -data $imgData 22Read as binary 2: set ph [image create photo] ; $ph put $imgData 23Read as uuencoded string: set ph [image create photo] ; $ph put $imgData 24 25The following ways to write image data are tested: 26Write to file: $ph write $fileName -format $fmt 27Write to uuencoded string: $ph data -format $fmt 28 29