API - XOOPS 2.5.11 Beta 2
By monxoops.fr
AutoCrop Class Reference

Public Member Functions

 execute ($img, $margin, $rgb_threshold, $pixel_cutoff, $base_color)
 

Member Function Documentation

◆ execute()

execute (   $img,
  $margin,
  $rgb_threshold,
  $pixel_cutoff,
  $base_color 
)

Executes the auto-crop operation on the $img

Parameters
\WideImage\Image$img
int$rgb_thresholdThe difference in RGB from $base_color
int$pixel_cutoffThe number of pixels on each border that must be over $rgb_threshold
int$base_colorThe color that will get cropped
Returns
\WideImage\Image resulting auto-cropped image

The documentation for this class was generated from the following file: