A static i_img object used to initialize direct 8-bit per sample images.
Creates a new image object x pixels wide, and y pixels high with ch channels.
Re-new image reference (assumes 3 channels)
im - Image pointer x - xsize of destination image y - ysize of destination image
**FIXME** what happens if a live image is passed in here?
Should this just call i_img_empty_ch()?
Re-new image reference
im - Image pointer x - xsize of destination image y - ysize of destination image ch - number of channels
These are the functions installed in an 8-bit per sample image.
Internal function.
This is the function kept in the i_f_ppix member of an i_img object. It does a normal store of a pixel into the image with range checking.
Returns 0 if the pixel could be set, -1 otherwise.
This is the function kept in the i_f_gpix member of an i_img object. It does normal retrieval of a pixel from the image with range checking.
Reads a line of data from the image, storing the pixels at vals.
The line runs from (l,y) inclusive to (r,y) non-inclusive
vals should point at space for (r-l) pixels.
l should never be less than zero (to avoid confusion about where to put the pixels in vals).
Returns the number of pixels copied (eg. if r, l or y is out of range)
Writes a line of data into the image, using the pixels at vals.
vals should point at (r-l) pixels.
l should never be less than zero (to avoid confusion about where to get the pixels in vals).
Reads sample values from im for the horizontal line (l, y) to (r-1,y) for the channels specified by chans, an array of int with chan_count elements.
Returns the number of samples read (which should be (r-l) * bits_set(chan_mask)
Reads sample values from im for the horizontal line (l, y) to (r-1,y) for the channels specified by chan_mask, where bit 0 is the first channel.
Writes sample values to im for the horizontal line (l, y) to (r-1,y) for the channels specified by chans, an array of int with chan_count elements.
Returns the number of samples written (which should be (r-l) * bits_set(chan_mask)
Arnar M. Hrafnkelsson <addi@umich.edu>
Tony Cook <tony@develop-help.com>
Imager
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head2'
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.