Writes JPEG image to file.
num_channels must be 1 (Y), 3 (RGB), 4 (RGBA), image pitch must be width*num_channels.
note that alpha will not be stored in jpeg file.
boolcompress_image_to_jpeg_stream(jpeg_encoder.WriteFunc wfn, int width, int height, int num_channels, const(ubyte)[] pImage_data, JpegParams comp_params)
Writes JPEG image to file. num_channels must be 1 (Y), 3 (RGB), 4 (RGBA), image pitch must be width*num_channels. note that alpha will not be stored in jpeg file.