]> git.andy128k.dev Git - ipf.git/commitdiff
annotate methods of image processor
authorAndrey Kutejko <andy128k@gmail.com>
Sun, 17 Mar 2019 10:35:17 +0000 (11:35 +0100)
committerAndrey Kutejko <andy128k@gmail.com>
Sun, 17 Mar 2019 10:35:17 +0000 (11:35 +0100)
ipf/image/processor.php

index bff96adf4279d999a3eeb9273b1887fc54becd8a..97b3a1b357f03bcf53a5ca58da7d3270a43cb0c0 100644 (file)
@@ -1,5 +1,19 @@
 <?php
 
+/**
+ * @method IPF_Image_Processor fill(int $x, int $y, int $width, int $height, int $color)
+ * @method IPF_Image_Processor rotate(float $angle, int $color=0x7F000000)
+ * @method IPF_Image_Processor copy(IPF_Image $image, int $dstX, int $dstY)
+ * @method IPF_Image_Processor copyPart(IPF_Image $image, int $dstX, int $dstY, int $srcX, int $srcY, int $width, int $height)
+ * @method IPF_Image_Processor copyScale(IPF_Image $image, int $dstX=0, int $dstY=0, int $dstWidth=null, int $dstHeight=null, int $srcX=0, int $srcY=0, int $srcWidth=null, int $srcHeight=null)
+ * @method IPF_Image_Processor diagonalWatermark(IPF_Image $watermark)
+ * @method IPF_Image_Processor fitWidth(int $width, bool $expand=true, bool $shrink=true)
+ * @method IPF_Image_Processor fitHeight(int $height, bool $expand=true, bool $shrink=true)
+ * @method IPF_Image_Processor fit(int $width, int $height, bool $expand=true, bool $shrink=true)
+ * @method IPF_Image_Processor thumbnailCrop(int $width, int $height, float $gravityX=0.5, float $gravityY=0.5)
+ * @method IPF_Image_Processor thumbnailFill(int $width, int $height, int $color=0x7F000000, float $gravityX=0.5, float $gravityY=0.5)
+ * @method IPF_Image_Processor replaceColor(int $from, int $to, bool $colorOnly=true)
+ */
 class IPF_Image_Processor
 {
     private $calls = array();
@@ -40,4 +54,3 @@ class IPF_Image_Processor
         return $destinationUrl;
     }
 }
-