maskimg.c - implements masked images/image subsets
A pointer to this type of object is kept in the ext_data of a masked image.
The basic data we copy into a masked image.
Create a new masked image.
The image mask is optional, in which case the image is just a view of a rectangular portion of the image.
The mask only has an effect of writing to the image, the entire view of the underlying image is readable.
pixel access to mimg(x,y) is translated to targ(x+xbase, y+ybase), as long as (0 <= x < w) and (0 <= y < h).
For a pixel to be writable, the pixel mask(x,y) must have non-zero in it's first channel. No scaling of the pixel is done, the channel sample is treated as boolean.
The destruction handler for masked images.
Releases the ext_data.
Internal function.
Write a pixel to a masked image.
Write a row of data to a masked image.
Read a pixel from a masked image.
Internal.
i_psamp() implementation for masked images.
i_psampf() implementation for masked images.
Tony Cook <tony@develop-help.com>
Imager(3)
To install Imager, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Imager
CPAN shell
perl -MCPAN -e shell install Imager
For more information on module installation, please visit the detailed CPAN module installation guide.