The OpenD Programming Language

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)
  2. ubyte[] decompress_jpeg_image_from_file(VFile fl, int width, int height, int actual_comps, int req_comps)
    @system
    static if(JpegHasIVVFS)
    ubyte[]
    decompress_jpeg_image_from_file
    (
    bool useMalloc = false
    )
    (
    VFile fl
    ,
    out int width
    ,
    out int height
    ,
    out int actual_comps
    ,
    int req_comps = -1
    )

Meta