DJMike's Tutorials:PHP

Imagemagick Functions



Built In Patterns


<?php
if($_GET[pattern])
{
$pattern=trim($_GET[pattern]);
}
else{
$pattern="checkerboard";
}
$image=new Imagick();
$image->newPseudoImage(140,50,"pattern:$pattern");
$image->setImageFormat("png");
header("Content-Type:image/png");
echo 
$image;
?>  



bricks

checkerboard

circles

crosshatch30

crosshatch45

crosshatch

fishscales

gray0

gray5

gray10

gray15

gray20

gray25

gray30

gray35

gray40

gray45

gray50

gray55

gray60

gray65

gray70

gray75

gray80

gray85

gray90

gray95

gray100

hexagons

horizontal

horizontalsaw

hs_bdiagonal

hs_cross

hs_diagcross

hs_fdiagonal

hs_horizontal

hs_vertical

left30

left45

leftshingle

octagons

right30

right45

rightshingle

smallfishscales

verticalbricks

verticalleftshingle

vertical

verticalrightshingle

verticalsaw