Home
last modified time | relevance | path

Searched refs:image (Results 1 – 25 of 228) sorted by relevance

12345678910

/imagick/tests/
H A D154_Imagick_textureImage_basic.phpt10 $image = new \Imagick();
11 $image->newImage(640, 480, new \ImagickPixel('pink'));
12 $image->setImageFormat("jpg");
16 $texture->scaleimage($image->getimagewidth() / 4, $image->getimageheight() / 4);
17 $image = $image->textureImage($texture);
18 $bytes = $image;
19 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D172_ImagickPixel_setColorValueQuantum_basic.phpt10 $image = new \Imagick();
12 $quantumRange = $image->getQuantumRange();
23 $image->newImage(500, 500, "SteelBlue2");
24 $image->setImageFormat("png");
26 $image->drawImage($draw);
28 $bytes = $image->getImageBlob();
29 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D217_ImagickDraw_setStrokeMiterLimit_basic.phpt38 $image = new \Imagick();
39 $image->newImage(500, 500, $backgroundColor);
40 $image->setImageFormat("png");
41 $image->drawImage($draw);
43 $image->setImageType(\Imagick::IMGTYPE_PALETTE);
45 $image->setImageCompressionQuality(100);
46 $image->stripImage();
48 $bytes = $image->getImageBlob();
49 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D175_ImagickDraw_arc_basic.phpt29 //Create an image object which the draw commands can be rendered into
30 $image = new \Imagick();
31 $image->newImage(500, 500, $backgroundColor);
32 $image->setImageFormat("png");
35 //into the image.
36 $image->drawImage($draw);
38 //Send the image to the browser
39 $bytes = $image->getImageBlob();
40 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D170_ImagickPixel_setColor_basic.phpt21 $image = new \Imagick();
22 $image->newImage(500, 500, "SteelBlue2");
23 $image->setImageFormat("png");
25 $image->drawImage($draw);
27 $bytes = $image->getImageBlob();
28 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D171_ImagickPixel_setColorValue_basic.phpt10 $image = new \Imagick();
21 $image->newImage(500, 500, "SteelBlue2");
22 $image->setImageFormat("png");
23 $image->drawImage($draw);
25 $bytes = $image->getImageBlob();
26 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D202_ImagickDraw_setFillColor_basic.phpt25 $image = new \Imagick();
26 $image->newImage(500, 500, $backgroundColor);
27 $image->setImageFormat("png");
29 $image->drawImage($draw);
31 $bytes = $image->getImageBlob();
32 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D195_ImagickDraw_rotate_basic.phpt23 $image = new \Imagick();
24 $image->newImage(500, 500, $backgroundColor);
25 $image->setImageFormat("png");
26 $image->drawImage($draw);
28 $bytes = $image->getImageBlob();
29 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D196_ImagickDraw_scale_basic.phpt24 $image = new \Imagick();
25 $image->newImage(500, 500, $backgroundColor);
26 $image->setImageFormat("png");
27 $image->drawImage($draw);
29 $bytes = $image->getImageBlob();
30 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D215_ImagickDraw_setStrokeColor_basic.phpt28 $image = new \Imagick();
29 $image->newImage(500, 400, $backgroundColor);
30 $image->setImageFormat("png");
32 $image->drawImage($draw);
34 $bytes = $image->getImageBlob();
35 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D213_ImagickDraw_setStrokeAlpha_basic.phpt25 $image = new \Imagick();
26 $image->newImage(500, 400, $backgroundColor);
27 $image->setImageFormat("png");
29 $image->drawImage($draw);
31 $bytes = $image->getImageBlob();
32 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D221_ImagickDraw_setStrokeWidth_basic.phpt25 $image = new \Imagick();
26 $image->newImage(500, 400, $backgroundColor);
27 $image->setImageFormat("png");
28 $image->drawImage($draw);
30 $bytes = $image->getImageBlob();
31 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D211_ImagickDraw_setStrokeAntialias_basic.phpt28 $image = new \Imagick();
29 $image->newImage(500, 250, $backgroundColor);
30 $image->setImageFormat("png");
32 $image->drawImage($draw);
34 $bytes = $image->getImageBlob();
35 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D186_ImagickDraw_polygon_basic.phpt31 $image = new \Imagick();
32 $image->newImage(500, 300, $backgroundColor);
33 $image->setImageFormat("png");
34 $image->drawImage($draw);
36 $bytes = $image->getImageBlob();
37 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D216_ImagickDraw_setStrokeDashArray_basic.phpt33 $image = new \Imagick();
34 $image->newImage(500, 400, $backgroundColor);
35 $image->setImageFormat("png");
36 $image->drawImage($draw);
38 $bytes = $image->getImageBlob();
39 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D184_ImagickDraw_polyline_basic.phpt30 $image = new \Imagick();
31 $image->newImage(500, 300, $backgroundColor);
32 $image->setImageFormat("png");
33 $image->drawImage($draw);
35 $bytes = $image->getImageBlob();
36 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D220_ImagickDraw_setStrokeOpacity_basic.phpt29 $image = new \Imagick();
30 $image->newImage(550, 400, $backgroundColor);
31 $image->setImageFormat("png");
32 $image->drawImage($draw);
34 $bytes = $image->getImageBlob();
35 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D214_ImagickDraw_setStrokeDashOffset_basic.phpt33 $image = new \Imagick();
34 $image->newImage(500, 400, $backgroundColor);
35 $image->setImageFormat("png");
36 $image->drawImage($draw);
38 $bytes = $image->getImageBlob();
39 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D227_ImagickDraw_skewY_basic.phpt31 $image = new \Imagick();
32 $image->newImage(500, 500, $backgroundColor);
33 $image->setImageFormat("png");
34 $image->drawImage($draw);
36 $bytes = $image->getImageBlob();
37 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D228_ImagickDraw_skewX_basic.phpt31 $image = new \Imagick();
32 $image->newImage(500, 500, $backgroundColor);
33 $image->setImageFormat("png");
35 $image->drawImage($draw);
37 $bytes = $image->getImageBlob();
38 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D235_ImagickDraw_translate_basic.phpt32 $image = new \Imagick();
33 $image->newImage(500, 500, $backgroundColor);
34 $image->setImageFormat("png");
36 $image->drawImage($draw);
38 $bytes = $image->getImageBlob();
39 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D174_ImagickDraw_affine_basic.phpt56 //Create an image object which the draw commands can be rendered into
57 $image = new \Imagick();
58 $image->newImage(500, 750, $backgroundColor);
59 $image->setImageFormat("png");
62 //into the image.
63 $image->drawImage($draw);
65 //Send the image to the browser
66 $bytes = $image->getImageBlob();
67 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D219_ImagickDraw_setStrokeLineJoin_basic.phpt37 $image = new \Imagick();
38 $image->newImage(500, 700, $backgroundColor);
39 $image->setImageFormat("png");
41 $image->drawImage($draw);
43 $bytes = $image->getImageBlob();
44 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A D240_Tutorial_imagickCompositeGen_basic.phpt94 /** @var $image \Imagick */
95 foreach ($images as $image) {
97 $finalBlending->newImage($image->getImageWidth(), $image->getImageHeight(), 'white');
107 $offsetX = $image->getImageWidth() - $overlap;
110 $offsetY = $image->getImageHeight() - $overlap;
117 $image->compositeImage($finalBlending, \Imagick::COMPOSITE_COPYOPACITY, 0, 0);
118 … $canvas->compositeimage($image, \Imagick::COMPOSITE_BLEND, $imagePositionX, $imagePositionY);
121 $imagePositionX = $imagePositionX + $image->getImageWidth() - $overlap;
124 $imagePositionY = $imagePositionY + $image->getImageHeight() - $overlap;
148 if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
H A Dbug20636.phpt16 // image being created and then roundCorners failing, instead the image
21 $image = new Imagick();
22 $image->newImage(0, 0, '#dddddd', 'png' );
25 $image->roundCorners(5, 5);

Completed in 15 milliseconds

12345678910