Graphics: Image Masking
Andrew Collington (contact me)
This class is meant to apply a mask to a given image, much like you could do in PhotoShop, Gimp, or any other such image manipulation program.
If the mask is smaller than the image then the mask can be placed in various positions (top left, left, top right, left, centre, right, bottom left, bottom, bottom right) or the mask can be resized to the dimensions of the image.
This class has to copy an image one pixel at a time. Please bare in mind that this process may take quite some time on large images, so it is probably best that it is used on thumbnails and smaller images.
The processing is done in true color. Therefore the resulting masked is generated in either JPEG or PNG.
| Utility
| Consistency
| Docs
| Examples
| Tests
| Videos
| Overall
| Rank
|
| Perfect (100.0%)
| Perfect (100.0%)
| -
| Perfect (100.0%)
| -
| -
| Sufficient (70.0%)
| 156 |
Click here for detailed information about this class on phpclasses.org
Class
The main class file