TwistPHP Documentation

filterColorize

File path: dist/twist/Core/Models/Image/Image.model.php
Namespace: Twist\Core\Models\Image
Extends:

filterColorizeApply a Colorize effect to the image, the image will be colorized according the the HEX colour value and opacity 0.0 - 1.0 value

Parameters

Name Type Description
$strColourstringn/a
[$fltOpacity = 0]floatn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strColour 'foo';
$fltOpacity 0;

//Call the function filterColorize with the example vars
$resImage = new \Twist\Core\Models\Image\Image();
$resImage -> filterColorize($strColour$fltOpacity);