Welcome Guest, Not a member yet? Register   Sign In
IMG_FILTER_COLORIZE
#1

[eluser]BrandonDurham[/eluser]
I'd love to extend Image_lib with the IMG_FILTER_COLORIZE function, but I have no idea how to do this. Can someone point me in the right direction?

I appreciate any help I can get. Thank you.
#2

[eluser]Seppo[/eluser]
Open your application/libaries folder and create a file named MY_Image_lib.php
Open the file and write your class naming it MY_Image_lib and extending CI_Image_lib
Code:
class MY_Image_lib extends CI_Image_lib {
        function MY_Image_lib($props = array())
        {
                parent::CI_Image_lib($props);
        }

        function filter_colorize()
        {
// do something
        }
}
#3

[eluser]BrandonDurham[/eluser]
Awesome. Thank you so much. I'll give that a shot.




Theme © iAndrew 2016 - Forum software by © MyBB