I was reading the doc on the imagefilter and was wondering what does it mean when it reads. What should I expect to see when either occurs?
Returns TRUE on success or FALSE on failure
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Exactly what it says.
If the function succeeds, it returns the boolean value
true, and if it fails, the boolean valuefalse. You won’t “see” anything unless youechothe result of the function, at which point the boolean value will be converted to a string, and then will readtrueorfalse.You can use this value anywhere you need a boolean. For example…. suppose I have a function,
myFunction(), and it returns “true on success or false on failure” just like whatever function you are using. You could do this:Specifically in the case of your
imagefilter()function, it doesn’t return an image. All of the work is done on the image referenced by the first parameter. It only returnstrueorfalse, just like it says.