MagickPassFail ExportImagePixelArea( const Image *image, const QuantumType quantum_type, unsigned int quantum_size, unsigned char *destination, const ExportPixelAreaOptions *options, ExportPixelAreaInfo *export_info );
ExportImagePixelArea() transfers one or more pixel components from the default image pixel cache view to a user supplied buffer. By default, values are written 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 ExportImagePixelArea method is:
MagickPassFail ExportImagePixelArea( const Image *image, const QuantumType quantum_type, unsigned int quantum_size, unsigned char *destination, const ExportPixelAreaOptions *options, ExportPixelAreaInfo *export_info );
MagickPassFail ExportViewPixelArea( const ViewInfo *view, const QuantumType quantum_type, unsigned int quantum_size, unsigned char *destination, const ExportPixelAreaOptions *options, ExportPixelAreaInfo *export_info );
ExportViewPixelArea() transfers one or more pixel components from the specified image pixel cache view to a user supplied buffer. By default, values are written 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 ExportViewPixelArea method is:
MagickPassFail ExportViewPixelArea( const ViewInfo *view, const QuantumType quantum_type, unsigned int quantum_size, unsigned char *destination, const ExportPixelAreaOptions *options, ExportPixelAreaInfo *export_info );
void ExportPixelAreaOptionsInit( ExportPixelAreaOptions *options );
ExportPixelAreaOptionsInit() initializes the options structure which is optionally passed to ExportPixelArea()
The format of the ExportPixelAreaOptionsInit method is:
void ExportPixelAreaOptionsInit( ExportPixelAreaOptions *options );
A description of each parameter follows: