It doesn't look like you can detect transparency at a glance. The comments on the imagecolorat manual page suggest that the resulting integer when ...
stackoverflow.com