compress_image_to_jpeg_stream

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.

  1. bool compress_image_to_jpeg_stream(jpeg_encoder.WriteFunc wfn, int width, int height, int num_channels, const(ubyte)[] pImage_data)
  2. bool compress_image_to_jpeg_stream(jpeg_encoder.WriteFunc wfn, int width, int height, int num_channels, const(ubyte)[] pImage_data, JpegParams comp_params)
    bool
    compress_image_to_jpeg_stream
    (
    scope jpeg_encoder.WriteFunc wfn
    ,
    int width
    ,
    int height
    ,,
    const(ubyte)[] pImage_data
    ,)
Suggestion Box / Bug Report