decompress_jpeg_image_from_file

decompress JPEG image from disk file. you can specify required color components in req_comps (3 for RGB or 4 for RGBA), or leave it as is to use image value.

  1. ubyte[] decompress_jpeg_image_from_file(const(char)[] filename, int width, int height, int actual_comps, int req_comps)
    ubyte[]
    decompress_jpeg_image_from_file
    (
    bool useMalloc = false
    )
    (
    const(char)[] filename
    ,
    out int width
    ,
    out int height
    ,
    out int actual_comps
    ,
    int req_comps = -1
    )
  2. ubyte[] decompress_jpeg_image_from_file(VFile fl, int width, int height, int actual_comps, int req_comps)

Meta