1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
| <?php // 文件输出图片格式为png header("Content-type:image/png"); // 建立一个画布 $image = ImageCreate(100,100); // 设定画布的北京颜色 $bgcolor = ImageColorAllocate($image,255,255,255); ImageFill($image,0,0,$bgcolor); // 画笔的颜色 $black = ImageColorAllocate($image,0,0,0); $white = ImageColorAllocate($image,255,255,255);
ImageFilledRectangle($image,0,0,28,28,$black); ImageFilledRectangle($image,4,4,24,24,$white); ImageFilledRectangle($image,8,8,20,20,$black);
ImageFilledRectangle($image,72,0,500,28,$black); ImageFilledRectangle($image,76,4,96,24,$white); ImageFilledRectangle($image,80,8,92,20,$black);
ImageFilledRectangle($image,0,72,28,500,$black); ImageFilledRectangle($image,4,76,24,96,$white); ImageFilledRectangle($image,8,80,20,92,$black);
ImageFilledRectangle($image,64,64,84,84,$black); ImageFilledRectangle($image,68,68,80,80,$white); ImageFilledRectangle($image,72,72,76,76,$black);
ImageFilledRectangle($image,0,32,20,44,$black); ImageFilledRectangle($image,4,36,8,40,$white);
ImageFilledRectangle($image,4,44,12,48,$black); ImageFilledRectangle($image,0,48,4,68,$black);
ImageFilledRectangle($image,8,52,12,56,$black); ImageFilledRectangle($image,12,48,20,68,$black); ImageFilledRectangle($image,16,52,20,64,$white);
ImageFilledRectangle($image,32,4,36,8,$black); ImageFilledRectangle($image,40,0,44,8,$black); ImageFilledRectangle($image,48,0,52,4,$black); ImageFilledRectangle($image,52,4,56,8,$black); ImageFilledRectangle($image,60,4,64,8,$black); ImageFilledRectangle($image,64,0,68,4,$black); ImageFilledRectangle($image,64,8,68,12,$black);
ImageFilledRectangle($image,48,8,52,16,$black); ImageFilledRectangle($image,52,12,56,20,$black); ImageFilledRectangle($image,56,8,60,16,$black);
ImageFilledRectangle($image,24,56,32,68,$black); ImageFilledRectangle($image,24,60,28,64,$white);
ImageFilledRectangle($image,24,40,28,44,$black); ImageFilledRectangle($image,24,48,28,52,$black); ImageFilledRectangle($image,28,44,32,48,$black); ImageFilledRectangle($image,32,40,36,44,$black); ImageFilledRectangle($image,36,48,44,52,$black); ImageFilledRectangle($image,32,12,44,16,$black); ImageFilledRectangle($image,36,16,40,24,$black); ImageFilledRectangle($image,32,20,36,28,$black); ImageFilledRectangle($image,24,32,40,36,$black); ImageFilledRectangle($image,36,28,48,32,$black); ImageFilledRectangle($image,40,24,44,28,$black); ImageFilledRectangle($image,44,20,68,24,$black); ImageFilledRectangle($image,48,24,52,28,$black); ImageFilledRectangle($image,56,24,60,28,$black); ImageFilledRectangle($image,64,24,68,28,$black);
ImageFilledRectangle($image,32,68,36,100,$black); ImageFilledRectangle($image,32,76,36,80,$white);
ImageFilledRectangle($image,68,84,84,88,$black); ImageFilledRectangle($image,88,88,92,92,$black); ImageFilledRectangle($image,84,68,88,84,$black); ImageFilledRectangle($image,88,64,92,88,$black); ImageFilledRectangle($image,88,76,92,80,$white); ImageFilledRectangle($image,92,72,96,88,$black); ImageFilledRectangle($image,96,72,100,100,$black); ImageFilledRectangle($image,76,96,96,100,$black); ImageFilledRectangle($image,76,88,80,96,$black); ImageFilledRectangle($image,80,92,88,96,$black); ImageFilledRectangle($image,88,88,92,92,$black); ImageFilledRectangle($image,68,96,72,100,$black); ImageFilledRectangle($image,64,92,68,96,$black);
ImageFilledRectangle($image,68,32,72,36,$black); ImageFilledRectangle($image,76,32,80,44,$black); ImageFilledRectangle($image,84,32,88,36,$black); ImageFilledRectangle($image,92,32,96,44,$black); ImageFilledRectangle($image,64,36,68,44,$black); ImageFilledRectangle($image,68,40,72,44,$black); ImageFilledRectangle($image,84,40,88,44,$black); ImageFilledRectangle($image,96,36,100,48,$black);
ImageFilledRectangle($image,64,48,76,56,$black); ImageFilledRectangle($image,68,52,80,60,$black); ImageFilledRectangle($image,68,52,76,56,$white); ImageFilledRectangle($image,80,48,84,52,$black); ImageFilledRectangle($image,64,60,72,64,$black); ImageFilledRectangle($image,80,60,88,64,$black); ImageFilledRectangle($image,84,52,88,64,$black); ImageFilledRectangle($image,88,48,100,52,$black); ImageFilledRectangle($image,92,52,96,60,$black); ImageFilledRectangle($image,96,56,100,64,$black);
ImageFilledRectangle($image,44,32,48,36,$black); ImageFilledRectangle($image,56,28,64,32,$black); ImageFilledRectangle($image,52,32,60,36,$black); ImageFilledRectangle($image,48,36,56,40,$black); ImageFilledRectangle($image,40,36,44,44,$black); ImageFilledRectangle($image,56,40,64,48,$black); ImageFilledRectangle($image,48,44,52,52,$black); ImageFilledRectangle($image,52,48,56,56,$black); ImageFilledRectangle($image,44,56,64,60,$black); ImageFilledRectangle($image,56,60,60,64,$black);
ImageFilledRectangle($image,36,56,40,64,$black); ImageFilledRectangle($image,40,64,44,72,$black); ImageFilledRectangle($image,44,60,48,68,$black); ImageFilledRectangle($image,48,68,56,72,$black); ImageFilledRectangle($image,52,72,56,80,$black); ImageFilledRectangle($image,56,72,60,76,$black); ImageFilledRectangle($image,48,76,52,84,$black);
ImageFilledRectangle($image,36,72,40,88,$black); ImageFilledRectangle($image,40,76,44,84,$black); ImageFilledRectangle($image,36,96,40,100,$black); ImageFilledRectangle($image,44,88,48,100,$black); ImageFilledRectangle($image,48,88,52,92,$black); ImageFilledRectangle($image,60,68,64,72,$black); ImageFilledRectangle($image,56,80,64,84,$black); ImageFilledRectangle($image,56,92,60,96,$black); // 形成图像 Imagepng($image); // 释放空间 ImageDestroy($image); ?>
|