Logo Search packages:      
Sourcecode: zbar version File versions  Download package

zbar_image_t* zbar_image_convert ( const zbar_image_t image,
unsigned long  format 
)

image format conversion. refer to the documentation for supported image formats

Returns:
a new image with the sample data from the original image converted to the requested format. the original image is unaffected.
Note:
the converted image size may be rounded (up) due to format constraints

Definition at line 1004 of file convert.c.

References zbar_image_convert(), and zbar_image_convert_resize().

Referenced by zbar::Image::convert(), and zbar_image_convert().

{
    return(zbar_image_convert_resize(src, fmt, src->width, src->height));
}


Generated by  Doxygen 1.6.0   Back to index