MagickPassFail ImportImagePixelArea( Image *image, const QuantumType quantum_type, const unsigned int quantum_size, const unsigned char *source, const ImportPixelAreaOptions *options, ImportPixelAreaInfo *import_info );
ImportImagePixelArea() transfers one or more pixel components from a user supplied buffer into the default image pixel cache view. By default, values are read in network (big-endian) byte/bit order. By setting the 'endian' member of ExportPixelAreaOptions, 16, 32 and 64-bit values may be output as little (LSBEndian), big (MSBEndian), or host native (NativeEndian) endian values. This function is quite powerful in that besides common native CPU type sizes, it can support any integer bit depth from 1 to 32 (e.g. 13), 64-bits, as well as 32 and 64-bit float.
MagickPass is returned if the pixels are successfully transferred, otherwise MagickFail.
The format of the ImportImagePixelArea method is:
MagickPassFail ImportImagePixelArea( Image *image, const QuantumType quantum_type, const unsigned int quantum_size, const unsigned char *source, const ImportPixelAreaOptions *options, ImportPixelAreaInfo *import_info );
MagickPassFail ImportViewPixelArea( ViewInfo *view, const QuantumType quantum_type, const unsigned int quantum_size, const unsigned char *source, const ImportPixelAreaOptions *options, ImportPixelAreaInfo *import_info );
ImportViewPixelArea() transfers one or more pixel components from a user supplied buffer into the specified image pixel cache view of an image. By default, values are read in network (big-endian) byte/bit order. By setting the 'endian' member of ExportPixelAreaOptions, 16, 32 and 64-bit values may be output as little (LSBEndian), big (MSBEndian), or host native (NativeEndian) endian values. This function is quite powerful in that besides common native CPU type sizes, it can support any integer bit depth from 1 to 32 (e.g. 13), 64-bits, as well as 32 and 64-bit float.
MagickPass is returned if the pixels are successfully transferred, otherwise MagickFail.
The format of the ImportViewPixelArea method is:
MagickPassFail ImportViewPixelArea( ViewInfo *view, const QuantumType quantum_type, const unsigned int quantum_size, const unsigned char *source, const ImportPixelAreaOptions *options, ImportPixelAreaInfo *import_info );
void ImportPixelAreaOptionsInit( ImportPixelAreaOptions *options );
ImportPixelAreaOptionsInit() initializes the options structure which is optionally passed to ImportPixelArea()
The format of the ImportPixelAreaOptionsInit method is:
void ImportPixelAreaOptionsInit( ImportPixelAreaOptions *options );
A description of each parameter follows: