Lines Matching refs:image
63 * Tests that an in-memory image equals a PNG file.
65 * It checks for equal image sizes, and whether any pixels are different.
81 echo "The expected image does not exist.\n";
93 echo "The image size differs: expected {$exp_x}x{$exp_y}, got {$act_x}x{$act_y}.\n";
116 * Returns the truecolor version of an image.
118 * @param resource $image
121 function test_to_truecolor($image)
123 if (imageistruecolor($image)) {
124 return $image;
126 $width = imagesx($image);
127 $height = imagesy($image);
129 imagecopy($result, $image, 0,0, 0,0, $width, $height);
135 * Saves an actual image to disk.
137 * The image is saved right beside the temporary .php test file with the
140 * @param resource $image
143 function save_actual_image($image)
147 imagepng($image, $filename);