1--TEST-- 2Testing imageflip() of GD library 3--EXTENSIONS-- 4gd 5--FILE-- 6<?php 7 8$im = imagecreatetruecolor( 99, 99 ); 9 10imagesetpixel($im, 0, 0, 0xFF); 11imagesetpixel($im, 0, 98, 0x00FF00); 12imagesetpixel($im, 98, 0, 0xFF0000); 13imagesetpixel($im, 98, 98, 0x0000FF); 14 15imageflip($im, IMG_FLIP_HORIZONTAL); 16imageflip($im, IMG_FLIP_VERTICAL); 17imageflip($im, IMG_FLIP_BOTH); 18 19var_dump(dechex(imagecolorat($im, 0, 0))); 20var_dump(dechex(imagecolorat($im, 0, 98))); 21var_dump(dechex(imagecolorat($im, 98, 0))); 22var_dump(dechex(imagecolorat($im, 98, 98))); 23?> 24--EXPECT-- 25string(2) "ff" 26string(4) "ff00" 27string(6) "ff0000" 28string(2) "ff" 29